// Lean compiler output
// Module: Lean.Message
// Imports: public import Init.Data.Slice.Array public import Lean.Util.PPExt public import Lean.Util.Sorry import Init.Data.String.Search
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
LEAN_EXPORT lean_object* l_Lean_MessageData_compose_elim___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_instCoeExpr___closed__0;
LEAN_EXPORT uint8_t l_Lean_instInhabitedMessageSeverity;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_MessageData_formatAux_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToMessageDataOptionExpr;
LEAN_EXPORT lean_object* l_Lean_instInhabitedBaseMessage_default(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageLog_toArray___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_ofWidget_elim___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__16;
lean_object* lean_string_utf8_extract(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_instCoeList;
static lean_object* l_Lean_instToMessageDataSubarray___redArg___closed__5;
static lean_object* l_Lean_instFromJsonMessageSeverity_fromJson___closed__0;
static lean_object* l_Lean_instImpl___closed__0_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_;
lean_object* l_Std_Format_pretty(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_panic___at___00Lean_MessageData_formatAux_spec__4___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_paren(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_ctorElim___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instFromJsonMessageSeverity_fromJson___lam__0___closed__0;
LEAN_EXPORT uint8_t l_Lean_MessageData_isTrace(lean_object*);
LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0_spec__0_spec__1(lean_object*, size_t, size_t);
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__37;
static lean_object* l_Lean_mkErrorStringWithPos___closed__4;
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__30;
LEAN_EXPORT lean_object* l_Lean_MessageData_kind(lean_object*);
LEAN_EXPORT uint8_t l_Lean_instInhabitedMessageSeverity_default;
LEAN_EXPORT lean_object* l_String_Slice_split___at___00Lean_stringToMessageData_spec__0___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToMessageDataSubarray___redArg___lam__1___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToJsonBaseMessage_toJson(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_ofSyntax___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_ofExpr___lam__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToMessageDataArray___redArg(lean_object*);
lean_object* l_Lean_Syntax_formatStx(lean_object*, lean_object*, uint8_t);
lean_object* lean_elab_environment_of_kernel_env(lean_object*);
lean_object* lean_mk_empty_array_with_capacity(lean_object*);
size_t lean_usize_shift_right(size_t, size_t);
LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__5;
lean_object* l_Lean_Name_fromJson_x3f(lean_object*);
lean_object* lean_string_utf8_next_fast(lean_object*, lean_object*);
LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00__private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit_spec__0(lean_object*, lean_object*, size_t, size_t);
LEAN_EXPORT lean_object* l_Lean_SerialMessage_toMessage(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_tagged_elim___redArg(lean_object*, lean_object*);
lean_object* l_Lean_PersistentArray_forM___redArg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instInhabitedBaseMessage_default___redArg___closed__0;
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__3;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instToJsonMessageSeverity_toJson___closed__0;
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__28;
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__39;
static lean_object* l_Lean_mkErrorStringWithPos___closed__0;
LEAN_EXPORT lean_object* l_Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_inlineExpr___lam__0___closed__5;
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__41;
LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToInfos_spec__0(lean_object*);
lean_object* l_Lean_Json_mkObj(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_ctorIdx___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00Lean_MessageLog_append_spec__1_spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instInhabitedBaseMessage___redArg(lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___lam__0___closed__5;
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__14;
LEAN_EXPORT lean_object* l_Lean_MessageLog_toList___boxed(lean_object*);
static lean_object* l_Lean_MessageData_orList___closed__5;
LEAN_EXPORT lean_object* l_Lean_MessageData_ctorIdx(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_ctorElim___redArg(lean_object*);
lean_object* l_Lean_Json_getObjValAs_x3f___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_toString(lean_object*);
static lean_object* l_Lean_MessageData_hint_x27___closed__3;
LEAN_EXPORT lean_object* l_Lean_indentD(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_toString___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToMessageDataOption___redArg___lam__0(lean_object*, lean_object*);
static lean_object* l_Lean_termM_x21___00__closed__1;
static lean_object* l_Lean_instFromJsonMessageSeverity_fromJson___closed__2;
static lean_object* l_Lean_instToJsonSerialMessage_toJson___closed__0;
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__39;
static lean_object* l_Lean_Kernel_Exception_toMessageData___lam__0___closed__1;
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_noConfusion___redArg___lam__0___boxed(lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__32;
LEAN_EXPORT lean_object* l_Lean_MessageData_joinSep(lean_object*, lean_object*);
lean_object* l_List_mapTR_loop___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_ctorElim___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__5;
LEAN_EXPORT lean_object* l_Lean_instToJsonSerialMessage_toJson(lean_object*);
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__36;
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_alter___at___00Lean_MessageLog_append_spec__0___redArg___lam__0___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__29;
LEAN_EXPORT lean_object* l_Lean_Option_register___at___00Lean_MessageData_initFn_00___x40_Lean_Message_1084813479____hygCtx___hyg_4__spec__0(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_formatAux___closed__1;
lean_object* l_Lean_Name_toString(lean_object*, uint8_t);
static lean_object* l_Lean_MessageData_ofList___closed__4;
static lean_object* l_Lean_MessageData_orList___closed__3;
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__33;
LEAN_EXPORT lean_object* l_Lean_MessageData_errorName_x3f(lean_object*);
extern lean_object* l_Lean_instInhabitedMVarId_default;
LEAN_EXPORT lean_object* l_Lean_MessageData_ofList(lean_object*);
static lean_object* l_Lean_MessageData_arrayExpr_toMessageData___closed__3;
lean_object* lean_array_push(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_toArrayMapped_go___at___00Lean_stringToMessageData_spec__1(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_toString___boxed(lean_object*);
static lean_object* l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__12;
LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0_spec__0_spec__0(lean_object*, size_t, size_t);
lean_object* l_Lean_TSyntax_expandInterpolatedStr(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__41;
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_information_elim(lean_object*, uint8_t, lean_object*, lean_object*);
lean_object* l_Std_DTreeMap_Internal_Impl_balance___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instToMessageDataSubarray___redArg___closed__4;
static lean_object* l_Lean_MessageData_initFn___closed__0_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_;
uint8_t lean_usize_dec_eq(size_t, size_t);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__31;
uint8_t l_Lean_Name_isAnonymous(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_hint_x27(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_error_elim___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_inlineExprTrailing___lam__2___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instImpl___closed__1_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_;
LEAN_EXPORT lean_object* l_Lean_MessageData_ofFormatWithInfos_elim(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_andList___closed__2;
LEAN_EXPORT lean_object* l_Lean_MessageData_ofExpr___lam__1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToStringMessageSeverity;
static lean_object* l_Lean_MessageData_ofConstName___lam__1___closed__1;
LEAN_EXPORT lean_object* l_Lean_MessageData_ofSyntax___lam__1(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageLog_msgs(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_ofArray(lean_object*);
LEAN_EXPORT lean_object* l_Option_toJson___at___00Lean_instToJsonSerialMessage_toJson_spec__0(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_ofGoal_elim___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_instToJsonBaseMessage_toJson___redArg___closed__1;
lean_object* l_instMonadST(lean_object*);
static lean_object* l_Lean_instToJsonMessageSeverity_toJson___closed__4;
LEAN_EXPORT lean_object* l_Lean_MessageData_instCoeFormat;
LEAN_EXPORT lean_object* l_Lean_inlineExpr___lam__2___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_information_elim___redArg(lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__36;
static lean_object* l_Lean_MessageData_formatAux___closed__5;
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__45;
LEAN_EXPORT uint8_t l_Lean_instBEqMessageSeverity_beq(uint8_t, uint8_t);
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__22;
static lean_object* l_panic___at___00Lean_MessageData_formatAux_spec__4___closed__0;
static lean_object* l_Lean_MessageData_ofList___closed__7;
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__34;
LEAN_EXPORT lean_object* l_Lean_instFromJsonSerialMessage;
static lean_object* l_Lean_instFromJsonSerialMessage_fromJson___closed__4;
static lean_object* l_Lean_instInhabitedMessageLog_default___closed__0;
LEAN_EXPORT lean_object* l_Lean_MessageData_hasTag___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_instCoeArrayExpr;
LEAN_EXPORT lean_object* l_Lean_MessageData_ofConstName___lam__1(lean_object*, lean_object*, uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instFromJsonMessageSeverity_fromJson___lam__2___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToMessageDataSubarray___redArg___lam__0(lean_object*, lean_object*);
static lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__2_spec__2___closed__0;
LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4_spec__4_spec__5(uint8_t, lean_object*, size_t, size_t);
static lean_object* l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__8;
LEAN_EXPORT lean_object* l_Lean_inlineExprTrailing(lean_object*, lean_object*);
static lean_object* l_Lean_instFromJsonSerialMessage_fromJson___closed__1;
LEAN_EXPORT uint8_t l_Lean_MessageData_hasSyntheticSorry(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_noConfusion___redArg___boxed(lean_object*, lean_object*);
lean_object* lean_array_fget_borrowed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_toArrayMapped_go___at___00Lean_stringToMessageData_spec__1___redArg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__19;
static lean_object* l_Lean_instToJsonBaseMessage_toJson___redArg___closed__7;
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__8;
static lean_object* l_Lean_MessageData_note___closed__4;
LEAN_EXPORT lean_object* l_Lean_mkErrorStringWithPos(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_formatAux___closed__2;
LEAN_EXPORT lean_object* l_Lean_instToMessageDataOption(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToMessageDataSyntax;
LEAN_EXPORT lean_object* l_Lean_SerialMessage_instToString___lam__0(lean_object*);
static lean_object* l_Lean_termM_x21___00__closed__12;
uint8_t l_Lean_Syntax_isOfKind(lean_object*, lean_object*);
lean_object* l_Lean_instToJsonPosition_toJson(lean_object*);
LEAN_EXPORT lean_object* l_Lean_stringToMessageData(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_error_elim___redArg___boxed(lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__13;
static lean_object* l_Lean_instFromJsonSerialMessage_fromJson___closed__6;
lean_object* l_Lean_instInhabitedPersistentArrayNode_default(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_note(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_instCoeListExpr;
static lean_object* l_Lean_MessageData_orList___closed__2;
static lean_object* l_Lean_instFromJsonMessageSeverity_fromJson___lam__0___closed__1;
LEAN_EXPORT lean_object* l_Lean_MessageData_instCoeListExpr___lam__0(lean_object*);
static lean_object* l_Lean_MessageData_formatAux___closed__3;
static lean_object* l_Lean_MessageLog_empty___closed__1;
uint8_t lean_string_dec_eq(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Message_toJson(lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__40;
LEAN_EXPORT lean_object* l_String_Slice_contains___at___00Lean_inlineExpr_spec__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0(lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_instCoeString;
LEAN_EXPORT lean_object* l_Lean_instInhabitedMessageData_default;
static lean_object* l_Lean_MessageData_ofConstName___lam__1___closed__0;
static lean_object* l_Lean_MessageData_arrayExpr_toMessageData___closed__0;
static lean_object* l_Lean_instToJsonBaseMessage_toJson___redArg___closed__0;
LEAN_EXPORT uint8_t l_Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00Lean_inlineExpr_spec__0_spec__0___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_instAppend;
lean_object* l_Id_instMonad___lam__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_orList___closed__4;
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__42;
LEAN_EXPORT lean_object* l_Lean_MessageData_instCoeSyntax;
lean_object* lean_string_utf8_byte_size(lean_object*);
lean_object* l_Lean_Json_getBool_x3f(lean_object*);
lean_object* l_id___boxed(lean_object*, lean_object*);
LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_MessageData_hasTag_spec__0(lean_object*, lean_object*, size_t, size_t);
static lean_object* l_Lean_aquote___closed__5;
LEAN_EXPORT lean_object* l_Lean_addMessageContextFull(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instToJsonBaseMessage_toJson___redArg___closed__6;
LEAN_EXPORT lean_object* l_Lean_MessageData_ofSyntax___lam__0___boxed(lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__43;
uint8_t l_Lean_Expr_hasSyntheticSorry(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_instCoeOptionExpr;
lean_object* l_Function_comp(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instFromJsonSerialMessage_fromJson___closed__2;
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__27;
uint32_t lean_string_utf8_get_fast(lean_object*, lean_object*);
static lean_object* l_Lean_instToJsonMessageSeverity_toJson___closed__1;
LEAN_EXPORT lean_object* l_Lean_MessageData_lazy___lam__0(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_ofLevel___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instImpl_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_;
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__6;
lean_object* l_List_foldl___at___00Array_appendList_spec__0___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_instToMessageDataSubarray___redArg___closed__0;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0_spec__0_spec__0(lean_object*, size_t, size_t, lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__4;
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__29;
lean_object* l_Lean_Json_getStr_x3f(lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00Lean_inlineExpr_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_mkErrorStringWithPos___closed__3;
LEAN_EXPORT lean_object* l_Lean_MessageData_ctorElim___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_instFromJsonSerialMessage_fromJson___closed__5;
static lean_object* l_Lean_MessageData_formatAux___closed__11;
lean_object* l_Nat_reprFast(lean_object*);
lean_object* l_Lean_Name_mkStr3(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Message_0__Lean_MessageData_formatExpensively___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instBEqMessageSeverity_beq___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__24;
LEAN_EXPORT lean_object* l_Lean_MessageData_format___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_toString(uint8_t);
static lean_object* l_Lean_MessageData_orList___closed__1;
LEAN_EXPORT lean_object* l_Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageLog_reportedPlusUnreported(lean_object*);
static lean_object* l_Lean_termM_x21___00__closed__7;
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___redArg(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__35;
LEAN_EXPORT lean_object* l_Lean_MessageData_nest_elim___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_instToMessageDataOption___redArg___lam__0___closed__3;
size_t lean_usize_of_nat(lean_object*);
static lean_object* l_Lean_inlineExprTrailing___lam__0___closed__1;
LEAN_EXPORT lean_object* l_Lean_instFromJsonBaseMessage___redArg(lean_object*);
lean_object* l_instIteratorSubarrayIteratorId___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToMessageDataExpr;
static lean_object* l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__0;
LEAN_EXPORT lean_object* l_Lean_MessageData_lazy___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_ofList___closed__6;
static lean_object* l_Lean_instFromJsonSerialMessage_fromJson___closed__22;
LEAN_EXPORT lean_object* l_Lean_MessageLog_errorsToInfos(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Kernel_Exception_toMessageData___lam__0(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__6(lean_object*, lean_object*);
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__35;
LEAN_EXPORT lean_object* l_Lean_errorNameOfKind_x3f___boxed(lean_object*);
static lean_object* l_Lean_instToMessageDataOption___redArg___lam__0___closed__0;
lean_object* l_Lean_Syntax_copyHeadTailInfoFrom(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToJsonMessageSeverity_toJson___boxed(lean_object*);
lean_object* l_Lean_formatRawGoal(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_composePreservingKind(lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_formatAux___closed__8;
LEAN_EXPORT lean_object* l_Lean_inlineExprTrailing___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_ppLevel(lean_object*, lean_object*);
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__30;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__2(lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_formatAux___closed__4;
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__20;
LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0_spec__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_warning_elim___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_alter___at___00Lean_MessageLog_append_spec__0___redArg___lam__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instFromJsonMessageSeverity_fromJson___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__1(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_instAppend___lam__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_ctorIdx(uint8_t);
LEAN_EXPORT lean_object* l_Lean_MessageData_instCoeLevel;
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__14;
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__6;
LEAN_EXPORT lean_object* l_Lean_aquote(lean_object*);
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__8;
LEAN_EXPORT lean_object* l_Lean_inlineExpr(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_withContext_elim___redArg(lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00Lean_inlineExpr_spec__0_spec__0_spec__0(lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_arrayExpr_toMessageData___closed__1;
LEAN_EXPORT lean_object* l_Lean_MessageData_instCoeString___lam__0(lean_object*);
LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4_spec__4_spec__4(uint8_t, lean_object*, size_t, size_t);
LEAN_EXPORT lean_object* l_Lean_instToMessageDataArray(lean_object*, lean_object*);
static lean_object* l_Lean_instFromJsonSerialMessage_fromJson___closed__16;
static lean_object* l_Lean_instToMessageDataMVarId___closed__0;
static lean_object* l_Lean_termM_x21___00__closed__13;
static lean_object* l_Lean_MessageData_orList___closed__6;
lean_object* l_Lean_ppExprWithInfos(lean_object*, lean_object*);
lean_object* l_Lean_SourceInfo_fromRef(lean_object*, uint8_t);
lean_object* lean_nat_to_int(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_ofSyntax(lean_object*);
static lean_object* l_Lean_instFromJsonSerialMessage_fromJson___closed__10;
static lean_object* l_Lean_MessageData_note___closed__2;
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__40;
static lean_object* l_Lean_MessageData_orList___closed__8;
LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToInfos_spec__0_spec__0(lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToMessageDataFormat;
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00Lean_inlineExpr_spec__0_spec__0_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instInhabitedMessageData;
LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4_spec__4___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_information_elim___redArg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_tagged_elim(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToInfos_spec__0_spec__0_spec__1(size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageLog_toList(lean_object*);
lean_object* l_Lean_Json_getObjValD(lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_ofList___closed__5;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToWarnings_spec__0_spec__0_spec__0(size_t, size_t, lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__26;
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__0;
static lean_object* l_Lean_instToMessageDataSubarray___redArg___closed__1;
LEAN_EXPORT lean_object* l_Lean_MessageData_instCoeArrayExpr___lam__0___boxed(lean_object*);
static lean_object* l_Lean_inlineExpr___lam__0___closed__6;
LEAN_EXPORT lean_object* l_Lean_instFromJsonMessageSeverity_fromJson___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__13;
LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_ofFormat(lean_object*);
static lean_object* l_Lean_MessageData_formatAux___closed__6;
LEAN_EXPORT lean_object* l_Lean_toTraceElem___redArg(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_initFn___closed__2_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_;
static lean_object* l_Lean_termM_x21___00__closed__2;
LEAN_EXPORT lean_object* l_String_Slice_contains___at___00Lean_inlineExpr_spec__0___redArg___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_andList(lean_object*);
lean_object* l_Id_instMonad___lam__2___boxed(lean_object*, lean_object*);
static lean_object* l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__11;
LEAN_EXPORT lean_object* l_Lean_MessageData_withNamingContext_elim(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_ofLazy_elim___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_andList___closed__5;
LEAN_EXPORT lean_object* l_Nat_cast___at___00Lean_MessageData_formatAux_spec__0(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__6___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_orList___closed__0;
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__31;
double lean_float_of_nat(lean_object*);
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__25;
lean_object* l_instInhabitedOfMonad___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instBEqMessageSeverity;
lean_object* l_List_getLast_x21___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___lam__0___closed__4;
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__17;
LEAN_EXPORT lean_object* l_Lean_Message_kind(lean_object*);
static lean_object* l_Lean_instFromJsonMessageSeverity_fromJson___closed__1;
LEAN_EXPORT lean_object* l_Lean_MessageLog_forM___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instTypeNameMessageData;
lean_object* lean_array_pop(lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__38;
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__18;
static lean_object* l_Lean_instToJsonBaseMessage_toJson___redArg___closed__4;
LEAN_EXPORT lean_object* l_Lean_instInhabitedMessageLog;
LEAN_EXPORT lean_object* l_Lean_Message_toJson___boxed(lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Lean_Message_isTrace(lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___lam__0___closed__2;
LEAN_EXPORT lean_object* l_Lean_instToMessageDataString;
static lean_object* l_Lean_instFromJsonSerialMessage_fromJson___closed__8;
static lean_object* l_Lean_instInhabitedMessageData_default___closed__0;
lean_object* lean_array_to_list(lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToMessageDataSubarray___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_inlineExpr___lam__0___closed__3;
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__10;
LEAN_EXPORT lean_object* l_Lean_instAddMessageContextOfMonadLift___redArg___lam__0(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instToJsonSerialMessage___closed__0;
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__2_spec__2(lean_object*);
LEAN_EXPORT uint8_t l_Lean_MessageData_hasTag(lean_object*, lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__22;
static lean_object* l_Lean_aquote___closed__4;
static lean_object* l_Lean_MessageData_formatAux___closed__0;
LEAN_EXPORT lean_object* l_Lean_instFromJsonMessageSeverity_fromJson(lean_object*);
static lean_object* l_Lean_instFromJsonSerialMessage_fromJson___closed__13;
LEAN_EXPORT lean_object* l_Lean_MessageData_ofLazy_elim(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_ofList___closed__2;
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__4;
LEAN_EXPORT lean_object* l_Lean_MessageData_ofExpr___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToJsonBaseMessage_toJson___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_inlineExpr___lam__0___closed__4;
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_noConfusion(lean_object*, uint8_t, uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToWarnings_spec__0_spec__0(lean_object*);
static lean_object* l_Lean_instBEqMessageSeverity___closed__0;
static lean_object* l_Lean_inlineExpr___lam__0___closed__0;
LEAN_EXPORT lean_object* l_Lean_MessageData_nil;
lean_object* l_Lean_instInhabitedPersistentArray_default(lean_object*);
static lean_object* l_Lean_instFromJsonSerialMessage_fromJson___closed__9;
static lean_object* l_Lean_inlineExpr___lam__0___closed__1;
static lean_object* l_Lean_MessageData_instCoeOptionExpr___lam__0___closed__2;
LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_addMessageContextPartial___redArg___lam__0___closed__2;
LEAN_EXPORT lean_object* l_Lean_instToMessageDataOfToFormat(lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_andList___closed__0;
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__3;
LEAN_EXPORT lean_object* l_Lean_instInhabitedMessageLog_default;
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__19;
static lean_object* l_Lean_instToJsonBaseMessage_toJson___redArg___closed__8;
LEAN_EXPORT lean_object* l_panic___at___00Lean_MessageData_formatAux_spec__4(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_errorName_x3f___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_instFromJsonBaseMessage(lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_hint_x27___closed__0;
lean_object* l_Lean_ppConstNameWithInfos(lean_object*, lean_object*);
lean_object* l_Lean_PersistentArray_push___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_instCoeName___closed__0;
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__12;
LEAN_EXPORT lean_object* l_Lean_MessageData_orList(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_ofConstName___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0_spec__0___boxed(lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Message_0__Lean_MessageData_formatExpensively(lean_object*, lean_object*);
lean_object* l_Lean_addMacroScope(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__17;
LEAN_EXPORT uint8_t l_Lean_MessageData_ofExpr___lam__0(lean_object*, lean_object*);
static lean_object* l_Lean_termM_x21___00__closed__4;
LEAN_EXPORT lean_object* l_Lean_MessageData_hasSyntheticSorry___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_errorNameOfKind_x3f(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_group_elim(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToMessageDataOfToFormat___redArg(lean_object*);
static lean_object* l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__10;
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__33;
static lean_object* l_Lean_MessageData_instCoeArrayExpr___lam__0___closed__2;
lean_object* l_Lean_Name_str___override(lean_object*, lean_object*);
lean_object* l_Id_instMonad___lam__3(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_PersistentArray_append___redArg(lean_object*, lean_object*);
static lean_object* l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit___closed__2;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0_spec__0_spec__1___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Message_serialize___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToJsonSerialMessage;
lean_object* l___private_Init_Dynamic_0__Dynamic_typeNameImpl(lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToJsonBaseMessage___redArg(lean_object*);
LEAN_EXPORT uint8_t l_Lean_MessageLog_hasUnreported(lean_object*);
static lean_object* l_Lean_termM_x21___00__closed__11;
LEAN_EXPORT lean_object* l_Lean_MessageLog_empty;
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__23;
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instFromJsonSerialMessage_fromJson___closed__11;
static lean_object* l_Lean_instInhabitedMessageLog_default___closed__2;
static lean_object* l_Lean_instToMessageDataSubarray___redArg___closed__9;
lean_object* l_Lean_Syntax_getArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_inlineExpr___lam__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_initFn___closed__3_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_;
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___redArg___lam__0(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToWarnings_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instToJsonBaseMessage_toJson___redArg___closed__9;
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_error_elim(lean_object*, uint8_t, lean_object*, lean_object*);
static lean_object* l_Lean_inlineExpr___lam__0___closed__2;
extern lean_object* l_Lean_instInhabitedPosition_default;
static lean_object* l_Lean_aquote___closed__3;
static lean_object* l_Lean_instFromJsonSerialMessage_fromJson___closed__14;
LEAN_EXPORT lean_object* l_Lean_SerialMessage_toString(lean_object*, uint8_t);
LEAN_EXPORT lean_object* l_Lean_MessageData_trace_elim___redArg(lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_String_Slice_contains___at___00Lean_inlineExpr_spec__0___redArg(lean_object*);
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__15;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4_spec__4_spec__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Except_orElseLazy___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_group_elim___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__0;
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__7;
LEAN_EXPORT lean_object* l_Lean_instAddMessageContextOfMonadLift___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToMessageDataProd___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_instToStringMessageSeverity___closed__0;
LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___redArg___lam__3(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instToMessageDataSubarray___redArg___closed__3;
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__38;
static lean_object* l_Lean_termM_x21___00__closed__0;
LEAN_EXPORT lean_object* l_Lean_MessageData_ofGoal_elim(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_ofLevel___lam__1(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_hint_x27___closed__1;
static lean_object* l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__9;
extern lean_object* l_Std_Format_defWidth;
static lean_object* l_Lean_MessageData_note___closed__0;
lean_object* l_String_Slice_Pos_get_x3f(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_tagWithErrorName(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_SerialMessage_toString___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToMessageDataSubarray___redArg(lean_object*);
static lean_object* l_Lean_addMessageContextPartial___redArg___lam__0___closed__1;
static lean_object* l_Lean_instFromJsonSerialMessage___closed__0;
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__2;
LEAN_EXPORT lean_object* l_Lean_errorNameSuffix;
LEAN_EXPORT lean_object* l_Lean_MessageData_arrayExpr_toMessageData(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__5(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instFromJsonMessageSeverity;
lean_object* lean_array_get_borrowed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_formatAux___closed__13;
LEAN_EXPORT lean_object* l_Lean_inlineExprTrailing___lam__0(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__25;
LEAN_EXPORT lean_object* l_Lean_MessageData_initFn_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_();
lean_object* l_String_toRawSubstring_x27(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Message_errorName_x3f(lean_object*);
lean_object* lean_usize_to_nat(size_t);
LEAN_EXPORT lean_object* l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__44;
static lean_object* l_Lean_instToMessageDataOption___redArg___lam__0___closed__4;
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__23;
LEAN_EXPORT lean_object* l_Lean_MessageData_ofConstName(lean_object*, uint8_t);
lean_object* lean_register_option(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_toCtorIdx(uint8_t);
static lean_object* l_Lean_instToMessageDataSubarray___redArg___closed__7;
LEAN_EXPORT uint8_t l_Lean_MessageData_ofSyntax___lam__0(lean_object*);
static lean_object* l_Lean_MessageData_instCoeString___closed__0;
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_toCtorIdx___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageLog_errorsToWarnings(lean_object*);
LEAN_EXPORT lean_object* l_Lean_inlineExprTrailing___lam__2(lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_note___closed__1;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToWarnings_spec__0_spec__0_spec__1___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Message_errorName_x3f___boxed(lean_object*);
static lean_object* l_Lean_instInhabitedMessageLog_default___closed__1;
LEAN_EXPORT lean_object* l_Lean_MessageData_ofExpr(lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToMessageDataLevel;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_nestD(lean_object*);
LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4_spec__4(uint8_t, lean_object*);
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__34;
static lean_object* l_Lean_instFromJsonMessageSeverity_fromJson___lam__1___closed__0;
lean_object* l_String_Slice_slice_x21(lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(lean_object*, uint8_t);
static lean_object* l_Lean_instToJsonBaseMessage_toJson___redArg___closed__2;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0_spec__0_spec__1(lean_object*, size_t, size_t, lean_object*);
static lean_object* l_Lean_instToJsonMessageSeverity___closed__0;
lean_object* l_Lean_Json_getBool_x3f___boxed(lean_object*);
static lean_object* l_Lean_instFromJsonSerialMessage_fromJson___closed__0;
LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0_spec__0(lean_object*);
static lean_object* l_Lean_termM_x21___00__closed__8;
LEAN_EXPORT lean_object* l_Lean_instToMessageDataProd(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToMessageDataMVarId;
lean_object* l___private_Init_Data_List_Impl_0__List_flatMapTR_go(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Option_toJson___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instFromJsonSerialMessage_fromJson(lean_object*);
static lean_object* l_Lean_toMessageList___closed__1;
LEAN_EXPORT lean_object* l_Lean_MessageData_mkPPContext(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_kindOfErrorName(lean_object*);
static lean_object* l_Lean_MessageData_formatAux___closed__9;
LEAN_EXPORT lean_object* l_Lean_instToMessageDataList(lean_object*, lean_object*);
static lean_object* l_Lean_aquote___closed__0;
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__27;
static lean_object* l_Lean_instToMessageDataSubarray___redArg___closed__2;
lean_object* l_Lean_ppTerm(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instAddMessageContextOfMonadLift(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0_spec__0_spec__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Std_DTreeMap_Internal_Impl_Const_alter___at___00Lean_MessageLog_append_spec__0___redArg___lam__0___closed__0;
lean_object* l_Lean_Json_parseTagged(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instFromJsonSerialMessage_fromJson___closed__20;
static lean_object* l_Lean_instImpl___closed__2_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_;
LEAN_EXPORT lean_object* l_Lean_inlineExpr___lam__2(lean_object*, lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__1;
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__16;
LEAN_EXPORT lean_object* l_Lean_instFromJsonBaseMessage_fromJson(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_instCoeOptionExpr___lam__0___closed__0;
static lean_object* l_Lean_Kernel_Exception_toMessageData___lam__0___closed__0;
static lean_object* l_Lean_instFromJsonSerialMessage_fromJson___closed__23;
lean_object* l_Id_instMonad___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0(lean_object*);
LEAN_EXPORT uint8_t l_String_Slice_contains___at___00Lean_inlineExpr_spec__0(lean_object*, lean_object*);
extern lean_object* l_Lean_NameSet_empty;
static lean_object* l_Lean_instFromJsonSerialMessage_fromJson___closed__3;
static double l_Lean_MessageData_formatAux___closed__10;
static lean_object* l_Lean_instToMessageDataSubarray___redArg___closed__6;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__0(lean_object*, lean_object*);
static lean_object* l_Lean_mkErrorStringWithPos___closed__5;
lean_object* lean_string_length(lean_object*);
static lean_object* l_Lean_MessageData_instCoeList___closed__0;
LEAN_EXPORT lean_object* l_Lean_MessageData_ofConstName___lam__1___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_instCoeArrayExpr___lam__0(lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___lam__0___closed__3;
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__28;
static lean_object* l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__3;
LEAN_EXPORT lean_object* l_Lean_instInhabitedBaseMessage_default___redArg(lean_object*);
uint8_t lean_nat_dec_eq(lean_object*, lean_object*);
static lean_object* l_Lean_instToMessageDataOption___redArg___lam__0___closed__1;
static lean_object* l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__2;
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_information_elim___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Message_isTrace___boxed(lean_object*);
uint8_t l_Lean_PersistentArray_isEmpty___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_ofWidget_elim(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_arrayExpr_toMessageData___closed__2;
LEAN_EXPORT lean_object* l_Lean_inlineExpr___lam__0(lean_object*, lean_object*, lean_object*);
uint8_t lean_nat_dec_lt(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_noConfusion___redArg___lam__0(lean_object*);
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__9;
lean_object* lean_float_to_string(double);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__7;
LEAN_EXPORT lean_object* l_Lean_MessageData_ofLevel(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageLog_getInfoMessages(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Message_serialize(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Kernel_Exception_toMessageData(lean_object*, lean_object*);
uint8_t lean_uint32_dec_eq(uint32_t, uint32_t);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__46;
lean_object* l_Lean_Name_mkStr2(lean_object*, lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__11;
LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___redArg___lam__1(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instToMessageDataOptionExpr___lam__0___closed__2;
lean_object* l_Lean_PersistentArray_toArray___redArg(lean_object*);
LEAN_EXPORT lean_object* l_Lean_termM_x21__;
LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4(uint8_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_indentExpr(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_sbracket(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_instCoeMVarId___lam__0(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_warning_elim___redArg___boxed(lean_object*);
static lean_object* l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit___closed__1;
static lean_object* l_Lean_MessageData_andList___closed__3;
LEAN_EXPORT lean_object* l_Lean_instFromJsonMessageSeverity_fromJson___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_formatAux___closed__12;
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__21;
LEAN_EXPORT lean_object* l_Lean_instToMessageDataProd___redArg___lam__0(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_ctorIdx___boxed(lean_object*);
static lean_object* l_Lean_MessageLog_empty___closed__3;
static lean_object* l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit___closed__0;
static lean_object* l_Lean_instToMessageDataOption___redArg___lam__0___closed__2;
static lean_object* l_Lean_MessageData_ofLevel___closed__0;
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_noConfusion___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__15;
static lean_object* l_Lean_MessageData_nil___closed__0;
LEAN_EXPORT lean_object* l_Lean_MessageData_initFn_00___x40_Lean_Message_1084813479____hygCtx___hyg_4____boxed(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_instToJsonSerialMessage_toJson_spec__1(lean_object*, lean_object*);
static lean_object* l_Lean_instFromJsonSerialMessage_fromJson___closed__17;
static lean_object* l_Lean_MessageLog_instAppend___closed__0;
static lean_object* l_Lean_SerialMessage_toString___closed__2;
static lean_object* l_Lean_SerialMessage_toString___closed__1;
static lean_object* l_Lean_MessageData_format___closed__0;
uint8_t lean_float_beq(double, double);
static lean_object* l_Lean_MessageData_instCoeSyntax___closed__0;
lean_object* l_Lean_Level_format(lean_object*, uint8_t);
LEAN_EXPORT lean_object* l_Lean_instToJsonMessageSeverity;
static lean_object* l_Lean_instToMessageDataSubarray___redArg___lam__2___closed__0;
static lean_object* l_Lean_aquote___closed__2;
lean_object* lean_panic_fn(lean_object*, lean_object*);
static lean_object* l_String_Slice_split___at___00Lean_stringToMessageData_spec__0___closed__0;
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__12;
lean_object* lean_nat_sub(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4_spec__4_spec__4___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToMessageDataList___redArg(lean_object*);
static lean_object* l_Lean_MessageData_hint_x27___closed__2;
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at___00Lean_MessageLog_append_spec__1(lean_object*, lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__49;
lean_object* l___private_Init_Dynamic_0__Dynamic_get_x3fImpl___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_MessageLog_empty___closed__2;
static lean_object* l_Lean_MessageData_instCoeArrayExpr___lam__0___closed__1;
static lean_object* l_Lean_MessageData_note___closed__3;
lean_object* l_Lean_KVMap_insert(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__2;
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__47;
static lean_object* l_Lean_termM_x21___00__closed__9;
static lean_object* l_Lean_instFromJsonSerialMessage_fromJson___closed__15;
LEAN_EXPORT lean_object* l_Lean_toMessageList(lean_object*);
static lean_object* l_Lean_SerialMessage_toString___closed__0;
LEAN_EXPORT lean_object* l_Std_Format_joinSep___at___00Lean_MessageData_formatAux_spec__2(lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_initFn___closed__4_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_;
static lean_object* l_Lean_MessageData_toString___closed__0;
LEAN_EXPORT lean_object* l_Lean_MessageData_withContext_elim(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_object*, lean_object*);
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__24;
LEAN_EXPORT lean_object* l_Lean_MessageLog_instAppend;
static lean_object* l_Lean_instToJsonBaseMessage_toJson___redArg___closed__5;
LEAN_EXPORT lean_object* l_Lean_mkErrorStringWithPos___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_termM_x21___00__closed__5;
static lean_object* l_Lean_inlineExprTrailing___lam__0___closed__2;
lean_object* l_Id_instMonad___lam__6(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToMessageDataMessageData;
static lean_object* l_Lean_inlineExprTrailing___lam__0___closed__0;
LEAN_EXPORT lean_object* l_Lean_instToMessageDataList___redArg___lam__0(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_String_Slice_split___at___00Lean_stringToMessageData_spec__0(lean_object*);
static lean_object* l_Lean_MessageData_instCoeArrayExpr___lam__0___closed__0;
static lean_object* l_Lean_MessageData_andList___closed__4;
static lean_object* l_Lean_instToMessageDataSubarray___redArg___lam__2___closed__1;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToInfos_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToMessageDataTSyntax(lean_object*);
static lean_object* l_Lean_instToJsonBaseMessage_toJson___redArg___closed__10;
LEAN_EXPORT lean_object* l_Lean_instToMessageDataSubarray___redArg___lam__1(lean_object*);
static lean_object* l_Lean_MessageData_ofConstName___lam__1___closed__2;
static lean_object* l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__6;
LEAN_EXPORT lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_stringToMessageData___closed__0;
size_t lean_usize_sub(size_t, size_t);
lean_object* lean_array_mk(lean_object*);
static lean_object* l_Lean_MessageData_ofList___closed__1;
LEAN_EXPORT lean_object* l_Lean_MessageLog_hasUnreported___boxed(lean_object*);
lean_object* l_Lean_instantiateMVarsCore(lean_object*, lean_object*);
static lean_object* l_Lean_instInhabitedMessageData_default___closed__1;
static lean_object* l_Lean_addMessageContextPartial___redArg___lam__0___closed__3;
static lean_object* l_Lean_instToJsonMessageSeverity_toJson___closed__5;
static lean_object* l_Lean_mkErrorStringWithPos___closed__2;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_MessageData_formatAux_spec__1(lean_object*, lean_object*, size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_warning_elim___redArg(lean_object*);
static lean_object* l_Lean_MessageData_initFn___closed__1_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_;
LEAN_EXPORT lean_object* l_Lean_MessageLog_hasErrors___boxed(lean_object*);
uint8_t l_Lean_Name_quickCmp(lean_object*, lean_object*);
static lean_object* l_Lean_instToMessageDataSubarray___redArg___closed__8;
LEAN_EXPORT lean_object* l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_instFromJsonSerialMessage_fromJson___closed__19;
static lean_object* l_Lean_addMessageContextPartial___redArg___lam__0___closed__0;
size_t lean_usize_add(size_t, size_t);
lean_object* l_mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instFromJsonSerialMessage_fromJson___closed__7;
LEAN_EXPORT lean_object* l_Lean_instToMessageDataSubarray___redArg___lam__0___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_isTrace___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__4(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_error_elim___redArg(lean_object*);
static lean_object* l_Lean_MessageData_orList___closed__7;
LEAN_EXPORT lean_object* l_Lean_MessageLog_append(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_instCoeMVarId;
LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToWarnings_spec__0(lean_object*);
static lean_object* l_Lean_instToMessageDataOptionExpr___lam__0___closed__1;
LEAN_EXPORT lean_object* l_Lean_MessageData_withNamingContext_elim___redArg(lean_object*, lean_object*);
static lean_object* l_Lean_instToMessageDataOptionExpr___lam__0___closed__0;
lean_object* l_String_Slice_Pos_prev_x3f(lean_object*, lean_object*);
static lean_object* l_Lean_termM_x21___00__closed__10;
lean_object* lean_array_uget(lean_object*, size_t);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_ofList___closed__3;
size_t lean_array_size(lean_object*);
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__1;
static lean_object* l_Lean_MessageData_ofList___closed__0;
static lean_object* l_Lean_instFromJsonSerialMessage_fromJson___closed__12;
static lean_object* l_Lean_instFromJsonSerialMessage_fromJson___closed__18;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00__private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageLog_forM(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_instCoeOptionExpr___lam__0(lean_object*);
static lean_object* l_Lean_instToJsonMessageSeverity_toJson___closed__2;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToInfos_spec__0_spec__0_spec__1___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__2___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageLog_msgs___boxed(lean_object*);
static lean_object* l_Lean_instToJsonMessageSeverity_toJson___closed__3;
static lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0___closed__0;
lean_object* l_Lean_Name_mkStr1(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_warning_elim(lean_object*, uint8_t, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_maxTraceChildren;
size_t lean_usize_shift_left(size_t, size_t);
LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___redArg___lam__2(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__1;
LEAN_EXPORT lean_object* l_Lean_MessageData_trace_elim(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instToJsonBaseMessage_toJson___redArg___closed__3;
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToInfos_spec__0_spec__0_spec__0(size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00Lean_inlineExpr_spec__0_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_MessageLog_empty___closed__0;
LEAN_EXPORT lean_object* l_List_foldl___at___00Std_Format_joinSep___at___00Lean_MessageData_formatAux_spec__2_spec__2(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_compose_elim(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instFromJsonMessageSeverity_fromJson___lam__0(lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__20;
lean_object* l_Option_fromJson_x3f(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instInhabitedBaseMessage(lean_object*, lean_object*);
lean_object* l_Lean_ppGoal(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4___boxed(lean_object*, lean_object*);
lean_object* lean_string_append(lean_object*, lean_object*);
static lean_object* l_Lean_termM_x21___00__closed__6;
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__5___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_formatAux(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instFromJsonSerialMessage_fromJson___closed__21;
static lean_object* l_Lean_termM_x21___00__closed__3;
LEAN_EXPORT lean_object* l_Lean_instToMessageDataName;
lean_object* l_Std_Iterators_IterM_DefaultConsumers_toArrayMapped_go___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_instCoeLevel___closed__0;
lean_object* lean_array_get_size(lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__21;
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__5;
LEAN_EXPORT lean_object* l_Lean_MessageData_instCoeExpr;
LEAN_EXPORT lean_object* l_Lean_instToJsonMessageSeverity_toJson(uint8_t);
lean_object* l_Id_instMonad___lam__0(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_ctorElim___redArg___boxed(lean_object*);
static lean_object* l_Lean_instToMessageDataString___closed__0;
LEAN_EXPORT lean_object* l_Lean_Message_toString___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToMessageDataOption___redArg(lean_object*);
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__11;
uint8_t lean_nat_dec_le(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToMessageDataSubarray(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageLog_toArray(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__1___boxed(lean_object*, lean_object*);
uint8_t lean_usize_dec_lt(size_t, size_t);
LEAN_EXPORT lean_object* l_Lean_MessageData_ofFormatWithInfos_elim___redArg(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_kind___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_formatAux___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToJsonBaseMessage(lean_object*, lean_object*);
static lean_object* l_Lean_MessageData_instCoeOptionExpr___lam__0___closed__1;
lean_object* l_Lean_instFromJsonPosition_fromJson(lean_object*);
lean_object* lean_expr_dbg_to_string(lean_object*);
static lean_object* l_Lean_MessageData_formatAux___closed__7;
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_ctorElim(lean_object*, lean_object*, uint8_t, lean_object*, lean_object*);
static lean_object* l_Lean_mkErrorStringWithPos___closed__1;
LEAN_EXPORT lean_object* l_Lean_MessageData_instCoeName;
LEAN_EXPORT lean_object* l_Lean_instToMessageDataArray___redArg___lam__0(lean_object*, lean_object*);
lean_object* lean_nat_add(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_toTraceElem(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__4___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_bracket(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Option_register___at___00Lean_MessageData_initFn_00___x40_Lean_Message_1084813479____hygCtx___hyg_4__spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT uint8_t l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00Lean_inlineExpr_spec__0_spec__0_spec__0___redArg(lean_object*, uint8_t, lean_object*, uint8_t);
static lean_object* l_Lean_errorNameSuffix___closed__0;
LEAN_EXPORT lean_object* l_Lean_SerialMessage_instToString;
static lean_object* l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__7;
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__26;
static lean_object* l_Lean_aquote___closed__1;
LEAN_EXPORT lean_object* l_Lean_MessageData_lazy(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageData_arrayExpr_toMessageData___boxed(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00Lean_inlineExpr_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__18;
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__10;
static lean_object* l_Lean_MessageData_andList___closed__1;
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__37;
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__48;
LEAN_EXPORT lean_object* l_Lean_MessageLog_markAllReported(lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_alter___at___00Lean_MessageLog_append_spec__0___redArg(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_alter___at___00Lean_MessageLog_append_spec__0(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* lean_array_uset(lean_object*, size_t, lean_object*);
static lean_object* l_Lean_instFromJsonMessageSeverity_fromJson___lam__2___closed__0;
LEAN_EXPORT lean_object* l_Lean_MessageData_ofName(lean_object*);
lean_object* l_Id_instMonad___lam__5___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Kernel_Exception_toMessageData___closed__9;
static lean_object* l_Lean_instToMessageDataMessageData___closed__0;
LEAN_EXPORT lean_object* l_Lean_MessageData_nest_elim(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_instFromJsonMessageSeverity___closed__0;
LEAN_EXPORT lean_object* l_Lean_MessageData_format(lean_object*, lean_object*);
lean_object* l_Lean_PersistentArray_toList___redArg(lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToWarnings_spec__0_spec__0_spec__1(size_t, size_t, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Message_kind___boxed(lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageLog_add(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_noConfusion___redArg(uint8_t, uint8_t);
size_t lean_usize_land(size_t, size_t);
LEAN_EXPORT lean_object* l_Lean_MessageData_mkPPContext___boxed(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Lean_Message_0__Lean_Kernel_Exception_mkCtx(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_MessageData_hasTag_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__4;
LEAN_EXPORT uint8_t l_Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00Lean_inlineExpr_spec__0_spec__0(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_instToMessageDataOptionExpr___lam__0(lean_object*);
double lean_float_sub(double, double);
LEAN_EXPORT lean_object* l_Lean_MessageData_ctorElim(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_toMessageList___closed__0;
static lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__32;
LEAN_EXPORT lean_object* l_Lean_Message_toString(lean_object*, uint8_t);
LEAN_EXPORT lean_object* l_Lean_instToMessageDataTSyntax___boxed(lean_object*);
LEAN_EXPORT uint8_t l_Lean_MessageLog_hasErrors(lean_object*);
static lean_object* _init_l_Lean_mkErrorStringWithPos___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(":", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_mkErrorStringWithPos___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(" ", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_mkErrorStringWithPos___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("", 0, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_mkErrorStringWithPos___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_mkErrorStringWithPos___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(")", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_mkErrorStringWithPos___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("-", 1, 1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_mkErrorStringWithPos(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_40; lean_object* x_41; lean_object* x_46; lean_object* x_65; 
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_68; 
x_68 = l_Lean_mkErrorStringWithPos___closed__2;
x_65 = x_68;
goto block_67;
}
else
{
lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; 
x_69 = lean_ctor_get(x_4, 0);
lean_inc(x_69);
lean_dec_ref(x_4);
x_70 = lean_ctor_get(x_69, 0);
lean_inc(x_70);
x_71 = lean_ctor_get(x_69, 1);
lean_inc(x_71);
lean_dec(x_69);
x_72 = l_Lean_mkErrorStringWithPos___closed__5;
x_73 = l_Nat_reprFast(x_70);
x_74 = lean_string_append(x_72, x_73);
lean_dec_ref(x_73);
x_75 = l_Lean_mkErrorStringWithPos___closed__0;
x_76 = lean_string_append(x_74, x_75);
x_77 = l_Nat_reprFast(x_71);
x_78 = lean_string_append(x_76, x_77);
lean_dec_ref(x_77);
x_65 = x_78;
goto block_67;
}
block_24:
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
x_9 = lean_ctor_get(x_2, 0);
lean_inc(x_9);
x_10 = lean_ctor_get(x_2, 1);
lean_inc(x_10);
lean_dec_ref(x_2);
x_11 = l_Lean_mkErrorStringWithPos___closed__0;
x_12 = lean_string_append(x_1, x_11);
x_13 = l_Nat_reprFast(x_9);
x_14 = lean_string_append(x_12, x_13);
lean_dec_ref(x_13);
x_15 = lean_string_append(x_14, x_11);
x_16 = l_Nat_reprFast(x_10);
x_17 = lean_string_append(x_15, x_16);
lean_dec_ref(x_16);
x_18 = lean_string_append(x_17, x_7);
lean_dec_ref(x_7);
x_19 = lean_string_append(x_18, x_11);
x_20 = lean_string_append(x_19, x_8);
lean_dec_ref(x_8);
x_21 = l_Lean_mkErrorStringWithPos___closed__1;
x_22 = lean_string_append(x_20, x_21);
x_23 = lean_string_append(x_22, x_3);
return x_23;
}
block_31:
{
lean_object* x_28; lean_object* x_29; lean_object* x_30; 
x_28 = lean_string_append(x_26, x_27);
lean_dec_ref(x_27);
x_29 = l_Lean_mkErrorStringWithPos___closed__0;
x_30 = lean_string_append(x_28, x_29);
x_7 = x_25;
x_8 = x_30;
goto block_24;
}
block_39:
{
lean_object* x_36; 
x_36 = lean_string_append(x_34, x_35);
lean_dec_ref(x_35);
if (lean_obj_tag(x_33) == 0)
{
lean_object* x_37; 
x_37 = l_Lean_mkErrorStringWithPos___closed__2;
x_25 = x_32;
x_26 = x_36;
x_27 = x_37;
goto block_31;
}
else
{
lean_object* x_38; 
x_38 = lean_ctor_get(x_33, 0);
lean_inc(x_38);
lean_dec_ref(x_33);
x_25 = x_32;
x_26 = x_36;
x_27 = x_38;
goto block_31;
}
}
block_45:
{
lean_object* x_42; 
x_42 = l_Lean_mkErrorStringWithPos___closed__1;
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_43; 
x_43 = l_Lean_mkErrorStringWithPos___closed__2;
x_32 = x_40;
x_33 = x_41;
x_34 = x_42;
x_35 = x_43;
goto block_39;
}
else
{
lean_object* x_44; 
x_44 = lean_ctor_get(x_5, 0);
lean_inc(x_44);
lean_dec_ref(x_5);
x_32 = x_40;
x_33 = x_41;
x_34 = x_42;
x_35 = x_44;
goto block_39;
}
}
block_64:
{
if (lean_obj_tag(x_6) == 0)
{
lean_object* x_47; 
x_47 = lean_box(0);
x_40 = x_46;
x_41 = x_47;
goto block_45;
}
else
{
uint8_t x_48; 
x_48 = !lean_is_exclusive(x_6);
if (x_48 == 0)
{
lean_object* x_49; lean_object* x_50; uint8_t x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; 
x_49 = lean_ctor_get(x_6, 0);
x_50 = l_Lean_mkErrorStringWithPos___closed__3;
x_51 = 1;
x_52 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_49, x_51);
x_53 = lean_string_append(x_50, x_52);
lean_dec_ref(x_52);
x_54 = l_Lean_mkErrorStringWithPos___closed__4;
x_55 = lean_string_append(x_53, x_54);
lean_ctor_set(x_6, 0, x_55);
x_40 = x_46;
x_41 = x_6;
goto block_45;
}
else
{
lean_object* x_56; lean_object* x_57; uint8_t x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; 
x_56 = lean_ctor_get(x_6, 0);
lean_inc(x_56);
lean_dec(x_6);
x_57 = l_Lean_mkErrorStringWithPos___closed__3;
x_58 = 1;
x_59 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_56, x_58);
x_60 = lean_string_append(x_57, x_59);
lean_dec_ref(x_59);
x_61 = l_Lean_mkErrorStringWithPos___closed__4;
x_62 = lean_string_append(x_60, x_61);
x_63 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_63, 0, x_62);
x_40 = x_46;
x_41 = x_63;
goto block_45;
}
}
}
block_67:
{
if (lean_obj_tag(x_6) == 0)
{
if (lean_obj_tag(x_5) == 0)
{
lean_object* x_66; 
x_66 = l_Lean_mkErrorStringWithPos___closed__2;
x_7 = x_65;
x_8 = x_66;
goto block_24;
}
else
{
x_46 = x_65;
goto block_64;
}
}
else
{
x_46 = x_65;
goto block_64;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_mkErrorStringWithPos___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_mkErrorStringWithPos(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec_ref(x_3);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_ctorIdx(uint8_t x_1) {
_start:
{
switch (x_1) {
case 0:
{
lean_object* x_2; 
x_2 = lean_unsigned_to_nat(0u);
return x_2;
}
case 1:
{
lean_object* x_3; 
x_3 = lean_unsigned_to_nat(1u);
return x_3;
}
default: 
{
lean_object* x_4; 
x_4 = lean_unsigned_to_nat(2u);
return x_4;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_ctorIdx___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = lean_unbox(x_1);
x_3 = l_Lean_MessageSeverity_ctorIdx(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_toCtorIdx(uint8_t x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_MessageSeverity_ctorIdx(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_toCtorIdx___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = lean_unbox(x_1);
x_3 = l_Lean_MessageSeverity_toCtorIdx(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_ctorElim(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_inc(x_5);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_ctorElim___redArg(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_ctorElim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_7; 
x_6 = lean_unbox(x_3);
x_7 = l_Lean_MessageSeverity_ctorElim(x_1, x_2, x_6, x_4, x_5);
lean_dec(x_5);
lean_dec(x_2);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_ctorElim___redArg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_MessageSeverity_ctorElim___redArg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_information_elim(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_inc(x_4);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_information_elim___redArg(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_information_elim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = lean_unbox(x_2);
x_6 = l_Lean_MessageSeverity_information_elim(x_1, x_5, x_3, x_4);
lean_dec(x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_information_elim___redArg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_MessageSeverity_information_elim___redArg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_warning_elim(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_inc(x_4);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_warning_elim___redArg(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_warning_elim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = lean_unbox(x_2);
x_6 = l_Lean_MessageSeverity_warning_elim(x_1, x_5, x_3, x_4);
lean_dec(x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_warning_elim___redArg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_MessageSeverity_warning_elim___redArg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_error_elim(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_inc(x_4);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_error_elim___redArg(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_error_elim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; lean_object* x_6; 
x_5 = lean_unbox(x_2);
x_6 = l_Lean_MessageSeverity_error_elim(x_1, x_5, x_3, x_4);
lean_dec(x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_error_elim___redArg___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_MessageSeverity_error_elim___redArg(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_noConfusion___redArg___lam__0(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_noConfusion___redArg___lam__0___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_MessageSeverity_noConfusion___redArg___lam__0(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_noConfusion___redArg(uint8_t x_1, uint8_t x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; uint8_t x_5; lean_object* x_6; 
x_3 = l_Lean_MessageSeverity_ctorIdx(x_1);
x_4 = l_Lean_MessageSeverity_ctorIdx(x_2);
x_5 = lean_nat_dec_eq(x_3, x_4);
lean_dec(x_4);
lean_dec(x_3);
x_6 = lean_alloc_closure((void*)(l_Lean_MessageSeverity_noConfusion___redArg___lam__0___boxed), 1, 0);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_noConfusion(lean_object* x_1, uint8_t x_2, uint8_t x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_MessageSeverity_noConfusion___redArg(x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_noConfusion___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; uint8_t x_6; lean_object* x_7; 
x_5 = lean_unbox(x_2);
x_6 = lean_unbox(x_3);
x_7 = l_Lean_MessageSeverity_noConfusion(x_1, x_5, x_6, x_4);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_noConfusion___redArg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; uint8_t x_4; lean_object* x_5; 
x_3 = lean_unbox(x_1);
x_4 = lean_unbox(x_2);
x_5 = l_Lean_MessageSeverity_noConfusion___redArg(x_3, x_4);
return x_5;
}
}
static uint8_t _init_l_Lean_instInhabitedMessageSeverity_default() {
_start:
{
uint8_t x_1; 
x_1 = 0;
return x_1;
}
}
static uint8_t _init_l_Lean_instInhabitedMessageSeverity() {
_start:
{
uint8_t x_1; 
x_1 = 0;
return x_1;
}
}
LEAN_EXPORT uint8_t l_Lean_instBEqMessageSeverity_beq(uint8_t x_1, uint8_t x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_3 = l_Lean_MessageSeverity_ctorIdx(x_1);
x_4 = l_Lean_MessageSeverity_ctorIdx(x_2);
x_5 = lean_nat_dec_eq(x_3, x_4);
lean_dec(x_4);
lean_dec(x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_instBEqMessageSeverity_beq___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; uint8_t x_4; uint8_t x_5; lean_object* x_6; 
x_3 = lean_unbox(x_1);
x_4 = lean_unbox(x_2);
x_5 = l_Lean_instBEqMessageSeverity_beq(x_3, x_4);
x_6 = lean_box(x_5);
return x_6;
}
}
static lean_object* _init_l_Lean_instBEqMessageSeverity___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_instBEqMessageSeverity_beq___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instBEqMessageSeverity() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instBEqMessageSeverity___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_instToJsonMessageSeverity_toJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("information", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lean_instToJsonMessageSeverity_toJson___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instToJsonMessageSeverity_toJson___closed__0;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instToJsonMessageSeverity_toJson___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("warning", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_instToJsonMessageSeverity_toJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instToJsonMessageSeverity_toJson___closed__2;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instToJsonMessageSeverity_toJson___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("error", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_instToJsonMessageSeverity_toJson___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instToJsonMessageSeverity_toJson___closed__4;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_instToJsonMessageSeverity_toJson(uint8_t x_1) {
_start:
{
switch (x_1) {
case 0:
{
lean_object* x_2; 
x_2 = l_Lean_instToJsonMessageSeverity_toJson___closed__1;
return x_2;
}
case 1:
{
lean_object* x_3; 
x_3 = l_Lean_instToJsonMessageSeverity_toJson___closed__3;
return x_3;
}
default: 
{
lean_object* x_4; 
x_4 = l_Lean_instToJsonMessageSeverity_toJson___closed__5;
return x_4;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_instToJsonMessageSeverity_toJson___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = lean_unbox(x_1);
x_3 = l_Lean_instToJsonMessageSeverity_toJson(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToJsonMessageSeverity___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_instToJsonMessageSeverity_toJson___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instToJsonMessageSeverity() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instToJsonMessageSeverity___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_instFromJsonMessageSeverity_fromJson___lam__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("no inductive constructor matched", 32, 32);
return x_1;
}
}
static lean_object* _init_l_Lean_instFromJsonMessageSeverity_fromJson___lam__0___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instFromJsonMessageSeverity_fromJson___lam__0___closed__0;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_instFromJsonMessageSeverity_fromJson___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_instFromJsonMessageSeverity_fromJson___lam__0___closed__1;
return x_2;
}
}
static lean_object* _init_l_Lean_instFromJsonMessageSeverity_fromJson___lam__1___closed__0() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = lean_box(x_1);
x_3 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_3, 0, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instFromJsonMessageSeverity_fromJson___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; 
x_6 = l_Lean_instToJsonMessageSeverity_toJson___closed__2;
x_7 = l_Lean_Json_parseTagged(x_1, x_6, x_2, x_3);
if (lean_obj_tag(x_7) == 0)
{
uint8_t x_8; 
x_8 = !lean_is_exclusive(x_7);
if (x_8 == 0)
{
lean_object* x_9; 
x_9 = l_Except_orElseLazy___redArg(x_7, x_4);
lean_dec_ref(x_7);
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_10 = lean_ctor_get(x_7, 0);
lean_inc(x_10);
lean_dec(x_7);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
x_12 = l_Except_orElseLazy___redArg(x_11, x_4);
lean_dec_ref(x_11);
return x_12;
}
}
else
{
lean_object* x_13; lean_object* x_14; 
lean_dec_ref(x_7);
x_13 = l_Lean_instFromJsonMessageSeverity_fromJson___lam__1___closed__0;
x_14 = l_Except_orElseLazy___redArg(x_13, x_4);
return x_14;
}
}
}
static lean_object* _init_l_Lean_instFromJsonMessageSeverity_fromJson___lam__2___closed__0() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 0;
x_2 = lean_box(x_1);
x_3 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_3, 0, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instFromJsonMessageSeverity_fromJson___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; 
x_6 = l_Lean_instToJsonMessageSeverity_toJson___closed__0;
x_7 = l_Lean_Json_parseTagged(x_1, x_6, x_2, x_3);
if (lean_obj_tag(x_7) == 0)
{
uint8_t x_8; 
x_8 = !lean_is_exclusive(x_7);
if (x_8 == 0)
{
lean_object* x_9; 
x_9 = l_Except_orElseLazy___redArg(x_7, x_4);
lean_dec_ref(x_7);
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_10 = lean_ctor_get(x_7, 0);
lean_inc(x_10);
lean_dec(x_7);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
x_12 = l_Except_orElseLazy___redArg(x_11, x_4);
lean_dec_ref(x_11);
return x_12;
}
}
else
{
lean_object* x_13; lean_object* x_14; 
lean_dec_ref(x_7);
x_13 = l_Lean_instFromJsonMessageSeverity_fromJson___lam__2___closed__0;
x_14 = l_Except_orElseLazy___redArg(x_13, x_4);
return x_14;
}
}
}
static lean_object* _init_l_Lean_instFromJsonMessageSeverity_fromJson___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instFromJsonMessageSeverity_fromJson___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instFromJsonMessageSeverity_fromJson___closed__0;
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instFromJsonMessageSeverity_fromJson___closed__2() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 2;
x_2 = lean_box(x_1);
x_3 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_3, 0, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instFromJsonMessageSeverity_fromJson___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_instFromJsonMessageSeverity_fromJson___lam__1(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_instFromJsonMessageSeverity_fromJson___lam__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_instFromJsonMessageSeverity_fromJson___lam__2(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_instFromJsonMessageSeverity_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_2 = lean_alloc_closure((void*)(l_Lean_instFromJsonMessageSeverity_fromJson___lam__0), 1, 0);
x_3 = l_Lean_instToJsonMessageSeverity_toJson___closed__4;
x_4 = lean_unsigned_to_nat(0u);
x_5 = l_Lean_instFromJsonMessageSeverity_fromJson___closed__1;
lean_inc(x_1);
x_6 = lean_alloc_closure((void*)(l_Lean_instFromJsonMessageSeverity_fromJson___lam__1___boxed), 5, 4);
lean_closure_set(x_6, 0, x_1);
lean_closure_set(x_6, 1, x_4);
lean_closure_set(x_6, 2, x_5);
lean_closure_set(x_6, 3, x_2);
lean_inc(x_1);
x_7 = lean_alloc_closure((void*)(l_Lean_instFromJsonMessageSeverity_fromJson___lam__2___boxed), 5, 4);
lean_closure_set(x_7, 0, x_1);
lean_closure_set(x_7, 1, x_4);
lean_closure_set(x_7, 2, x_5);
lean_closure_set(x_7, 3, x_6);
x_8 = l_Lean_Json_parseTagged(x_1, x_3, x_4, x_5);
if (lean_obj_tag(x_8) == 0)
{
uint8_t x_9; 
x_9 = !lean_is_exclusive(x_8);
if (x_9 == 0)
{
lean_object* x_10; 
x_10 = l_Except_orElseLazy___redArg(x_8, x_7);
lean_dec_ref(x_8);
return x_10;
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_11 = lean_ctor_get(x_8, 0);
lean_inc(x_11);
lean_dec(x_8);
x_12 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_12, 0, x_11);
x_13 = l_Except_orElseLazy___redArg(x_12, x_7);
lean_dec_ref(x_12);
return x_13;
}
}
else
{
lean_object* x_14; lean_object* x_15; 
lean_dec_ref(x_8);
x_14 = l_Lean_instFromJsonMessageSeverity_fromJson___closed__2;
x_15 = l_Except_orElseLazy___redArg(x_14, x_7);
return x_15;
}
}
}
static lean_object* _init_l_Lean_instFromJsonMessageSeverity___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_instFromJsonMessageSeverity_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instFromJsonMessageSeverity() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instFromJsonMessageSeverity___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_toString(uint8_t x_1) {
_start:
{
switch (x_1) {
case 0:
{
lean_object* x_2; 
x_2 = l_Lean_instToJsonMessageSeverity_toJson___closed__0;
return x_2;
}
case 1:
{
lean_object* x_3; 
x_3 = l_Lean_instToJsonMessageSeverity_toJson___closed__2;
return x_3;
}
default: 
{
lean_object* x_4; 
x_4 = l_Lean_instToJsonMessageSeverity_toJson___closed__4;
return x_4;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_MessageSeverity_toString___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = lean_unbox(x_1);
x_3 = l_Lean_MessageSeverity_toString(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToStringMessageSeverity___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_MessageSeverity_toString___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instToStringMessageSeverity() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instToStringMessageSeverity___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ctorIdx(lean_object* x_1) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 0:
{
lean_object* x_2; 
x_2 = lean_unsigned_to_nat(0u);
return x_2;
}
case 1:
{
lean_object* x_3; 
x_3 = lean_unsigned_to_nat(1u);
return x_3;
}
case 2:
{
lean_object* x_4; 
x_4 = lean_unsigned_to_nat(2u);
return x_4;
}
case 3:
{
lean_object* x_5; 
x_5 = lean_unsigned_to_nat(3u);
return x_5;
}
case 4:
{
lean_object* x_6; 
x_6 = lean_unsigned_to_nat(4u);
return x_6;
}
case 5:
{
lean_object* x_7; 
x_7 = lean_unsigned_to_nat(5u);
return x_7;
}
case 6:
{
lean_object* x_8; 
x_8 = lean_unsigned_to_nat(6u);
return x_8;
}
case 7:
{
lean_object* x_9; 
x_9 = lean_unsigned_to_nat(7u);
return x_9;
}
case 8:
{
lean_object* x_10; 
x_10 = lean_unsigned_to_nat(8u);
return x_10;
}
case 9:
{
lean_object* x_11; 
x_11 = lean_unsigned_to_nat(9u);
return x_11;
}
default: 
{
lean_object* x_12; 
x_12 = lean_unsigned_to_nat(10u);
return x_12;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ctorIdx___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_MessageData_ctorIdx(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ctorElim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 0:
{
lean_object* x_3; lean_object* x_4; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_3);
lean_dec_ref(x_1);
x_4 = lean_apply_1(x_2, x_3);
return x_4;
}
case 1:
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_1, 0);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = lean_apply_1(x_2, x_5);
return x_6;
}
case 5:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_7 = lean_ctor_get(x_1, 0);
lean_inc(x_7);
x_8 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_8);
lean_dec_ref(x_1);
x_9 = lean_apply_2(x_2, x_7, x_8);
return x_9;
}
case 6:
{
lean_object* x_10; lean_object* x_11; 
x_10 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_10);
lean_dec_ref(x_1);
x_11 = lean_apply_1(x_2, x_10);
return x_11;
}
case 8:
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_12 = lean_ctor_get(x_1, 0);
lean_inc(x_12);
x_13 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_13);
lean_dec_ref(x_1);
x_14 = lean_apply_2(x_2, x_12, x_13);
return x_14;
}
case 9:
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; 
x_15 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_15);
x_16 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_16);
x_17 = lean_ctor_get(x_1, 2);
lean_inc_ref(x_17);
lean_dec_ref(x_1);
x_18 = lean_apply_3(x_2, x_15, x_16, x_17);
return x_18;
}
default: 
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_19);
x_20 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_20);
lean_dec_ref(x_1);
x_21 = lean_apply_2(x_2, x_19, x_20);
return x_21;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ctorElim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_MessageData_ctorElim___redArg(x_3, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ctorElim___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_MessageData_ctorElim(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_2);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofFormatWithInfos_elim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_MessageData_ctorElim___redArg(x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofFormatWithInfos_elim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_MessageData_ctorElim___redArg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofGoal_elim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_MessageData_ctorElim___redArg(x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofGoal_elim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_MessageData_ctorElim___redArg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofWidget_elim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_MessageData_ctorElim___redArg(x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofWidget_elim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_MessageData_ctorElim___redArg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_withContext_elim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_MessageData_ctorElim___redArg(x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_withContext_elim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_MessageData_ctorElim___redArg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_withNamingContext_elim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_MessageData_ctorElim___redArg(x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_withNamingContext_elim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_MessageData_ctorElim___redArg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_nest_elim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_MessageData_ctorElim___redArg(x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_nest_elim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_MessageData_ctorElim___redArg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_group_elim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_MessageData_ctorElim___redArg(x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_group_elim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_MessageData_ctorElim___redArg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_compose_elim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_MessageData_ctorElim___redArg(x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_compose_elim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_MessageData_ctorElim___redArg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_tagged_elim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_MessageData_ctorElim___redArg(x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_tagged_elim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_MessageData_ctorElim___redArg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_trace_elim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_MessageData_ctorElim___redArg(x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_trace_elim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_MessageData_ctorElim___redArg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofLazy_elim(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_MessageData_ctorElim___redArg(x_2, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofLazy_elim___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_MessageData_ctorElim___redArg(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instInhabitedMessageData_default___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instInhabitedMVarId_default;
return x_1;
}
}
static lean_object* _init_l_Lean_instInhabitedMessageData_default___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instInhabitedMessageData_default___closed__0;
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instInhabitedMessageData_default() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instInhabitedMessageData_default___closed__1;
return x_1;
}
}
static lean_object* _init_l_Lean_instInhabitedMessageData() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instInhabitedMessageData_default;
return x_1;
}
}
static lean_object* _init_l_Lean_instImpl___closed__0_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_instImpl___closed__1_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("MessageData", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lean_instImpl___closed__2_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instImpl___closed__1_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_;
x_2 = l_Lean_instImpl___closed__0_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instImpl_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instImpl___closed__2_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_;
return x_1;
}
}
static lean_object* _init_l_Lean_instTypeNameMessageData() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instImpl_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofFormat(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = lean_box(1);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
x_4 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_4, 0, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_lazy___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; lean_object* x_7; 
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_10; lean_object* x_11; 
lean_dec_ref(x_3);
x_10 = lean_box(0);
x_11 = lean_apply_2(x_2, x_10, lean_box(0));
x_6 = x_11;
x_7 = lean_box(0);
goto block_9;
}
else
{
lean_object* x_12; lean_object* x_13; 
lean_dec_ref(x_2);
x_12 = lean_ctor_get(x_4, 0);
lean_inc(x_12);
lean_dec_ref(x_4);
x_13 = lean_apply_2(x_3, x_12, lean_box(0));
x_6 = x_13;
x_7 = lean_box(0);
goto block_9;
}
block_9:
{
lean_object* x_8; 
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_1);
lean_ctor_set(x_8, 1, x_6);
return x_8;
}
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_lazy___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_MessageData_lazy___lam__0(x_1, x_2, x_3, x_4);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_lazy(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_4 = l_Lean_instImpl_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_;
x_5 = lean_alloc_closure((void*)(l_Lean_MessageData_lazy___lam__0___boxed), 5, 3);
lean_closure_set(x_5, 0, x_4);
lean_closure_set(x_5, 1, x_3);
lean_closure_set(x_5, 2, x_1);
x_6 = lean_alloc_ctor(10, 2, 0);
lean_ctor_set(x_6, 0, x_5);
lean_ctor_set(x_6, 1, x_2);
return x_6;
}
}
LEAN_EXPORT uint8_t l_Lean_MessageData_hasTag(lean_object* x_1, lean_object* x_2) {
_start:
{
switch (lean_obj_tag(x_2)) {
case 3:
{
lean_object* x_3; 
x_3 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_3);
lean_dec_ref(x_2);
x_2 = x_3;
goto _start;
}
case 4:
{
lean_object* x_5; 
x_5 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_5);
lean_dec_ref(x_2);
x_2 = x_5;
goto _start;
}
case 5:
{
lean_object* x_7; 
x_7 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_7);
lean_dec_ref(x_2);
x_2 = x_7;
goto _start;
}
case 6:
{
lean_object* x_9; 
x_9 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_9);
lean_dec_ref(x_2);
x_2 = x_9;
goto _start;
}
case 7:
{
lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_11 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_11);
x_12 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_12);
lean_dec_ref(x_2);
lean_inc_ref(x_1);
x_13 = l_Lean_MessageData_hasTag(x_1, x_11);
if (x_13 == 0)
{
x_2 = x_12;
goto _start;
}
else
{
lean_dec_ref(x_12);
lean_dec_ref(x_1);
return x_13;
}
}
case 8:
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; uint8_t x_18; 
x_15 = lean_ctor_get(x_2, 0);
lean_inc(x_15);
x_16 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_16);
lean_dec_ref(x_2);
lean_inc_ref(x_1);
x_17 = lean_apply_1(x_1, x_15);
x_18 = lean_unbox(x_17);
if (x_18 == 0)
{
x_2 = x_16;
goto _start;
}
else
{
uint8_t x_20; 
lean_dec_ref(x_16);
lean_dec_ref(x_1);
x_20 = lean_unbox(x_17);
return x_20;
}
}
case 9:
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; 
x_21 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_21);
x_22 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_22);
x_23 = lean_ctor_get(x_2, 2);
lean_inc_ref(x_23);
lean_dec_ref(x_2);
x_24 = lean_ctor_get(x_21, 0);
lean_inc(x_24);
lean_dec_ref(x_21);
lean_inc_ref(x_1);
x_25 = lean_apply_1(x_1, x_24);
x_26 = lean_unbox(x_25);
if (x_26 == 0)
{
uint8_t x_27; 
lean_inc_ref(x_1);
x_27 = l_Lean_MessageData_hasTag(x_1, x_22);
if (x_27 == 0)
{
lean_object* x_28; lean_object* x_29; uint8_t x_30; 
x_28 = lean_unsigned_to_nat(0u);
x_29 = lean_array_get_size(x_23);
x_30 = lean_nat_dec_lt(x_28, x_29);
if (x_30 == 0)
{
lean_dec(x_29);
lean_dec_ref(x_23);
lean_dec_ref(x_1);
return x_27;
}
else
{
if (x_30 == 0)
{
lean_dec(x_29);
lean_dec_ref(x_23);
lean_dec_ref(x_1);
return x_27;
}
else
{
size_t x_31; size_t x_32; uint8_t x_33; 
x_31 = 0;
x_32 = lean_usize_of_nat(x_29);
lean_dec(x_29);
x_33 = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_MessageData_hasTag_spec__0(x_1, x_23, x_31, x_32);
lean_dec_ref(x_23);
return x_33;
}
}
}
else
{
lean_dec_ref(x_23);
lean_dec_ref(x_1);
return x_27;
}
}
else
{
uint8_t x_34; 
lean_dec_ref(x_23);
lean_dec_ref(x_22);
lean_dec_ref(x_1);
x_34 = lean_unbox(x_25);
return x_34;
}
}
default: 
{
uint8_t x_35; 
lean_dec_ref(x_2);
lean_dec_ref(x_1);
x_35 = 0;
return x_35;
}
}
}
}
LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_MessageData_hasTag_spec__0(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_eq(x_3, x_4);
if (x_5 == 0)
{
lean_object* x_6; uint8_t x_7; 
x_6 = lean_array_uget(x_2, x_3);
lean_inc_ref(x_1);
x_7 = l_Lean_MessageData_hasTag(x_1, x_6);
if (x_7 == 0)
{
size_t x_8; size_t x_9; 
x_8 = 1;
x_9 = lean_usize_add(x_3, x_8);
x_3 = x_9;
goto _start;
}
else
{
lean_dec_ref(x_1);
return x_7;
}
}
else
{
uint8_t x_11; 
lean_dec_ref(x_1);
x_11 = 0;
return x_11;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_MessageData_hasTag_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; uint8_t x_7; lean_object* x_8; 
x_5 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_6 = lean_unbox_usize(x_4);
lean_dec(x_4);
x_7 = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_MessageData_hasTag_spec__0(x_1, x_2, x_5, x_6);
lean_dec_ref(x_2);
x_8 = lean_box(x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_hasTag___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lean_MessageData_hasTag(x_1, x_2);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_kind(lean_object* x_1) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 3:
{
lean_object* x_2; 
x_2 = lean_ctor_get(x_1, 1);
x_1 = x_2;
goto _start;
}
case 4:
{
lean_object* x_4; 
x_4 = lean_ctor_get(x_1, 1);
x_1 = x_4;
goto _start;
}
case 8:
{
lean_object* x_6; 
x_6 = lean_ctor_get(x_1, 0);
lean_inc(x_6);
return x_6;
}
default: 
{
lean_object* x_7; 
x_7 = lean_box(0);
return x_7;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_kind___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_MessageData_kind(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT uint8_t l_Lean_MessageData_isTrace(lean_object* x_1) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 3:
{
lean_object* x_2; 
x_2 = lean_ctor_get(x_1, 1);
x_1 = x_2;
goto _start;
}
case 4:
{
lean_object* x_4; 
x_4 = lean_ctor_get(x_1, 1);
x_1 = x_4;
goto _start;
}
case 8:
{
lean_object* x_6; 
x_6 = lean_ctor_get(x_1, 1);
x_1 = x_6;
goto _start;
}
case 9:
{
uint8_t x_8; 
x_8 = 1;
return x_8;
}
default: 
{
uint8_t x_9; 
x_9 = 0;
return x_9;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_isTrace___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Lean_MessageData_isTrace(x_1);
lean_dec_ref(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_composePreservingKind(lean_object* x_1, lean_object* x_2) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 3:
{
uint8_t x_3; 
x_3 = !lean_is_exclusive(x_1);
if (x_3 == 0)
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_ctor_get(x_1, 1);
x_5 = l_Lean_MessageData_composePreservingKind(x_4, x_2);
lean_ctor_set(x_1, 1, x_5);
return x_1;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_6 = lean_ctor_get(x_1, 0);
x_7 = lean_ctor_get(x_1, 1);
lean_inc(x_7);
lean_inc(x_6);
lean_dec(x_1);
x_8 = l_Lean_MessageData_composePreservingKind(x_7, x_2);
x_9 = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(x_9, 0, x_6);
lean_ctor_set(x_9, 1, x_8);
return x_9;
}
}
case 4:
{
uint8_t x_10; 
x_10 = !lean_is_exclusive(x_1);
if (x_10 == 0)
{
lean_object* x_11; lean_object* x_12; 
x_11 = lean_ctor_get(x_1, 1);
x_12 = l_Lean_MessageData_composePreservingKind(x_11, x_2);
lean_ctor_set(x_1, 1, x_12);
return x_1;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_13 = lean_ctor_get(x_1, 0);
x_14 = lean_ctor_get(x_1, 1);
lean_inc(x_14);
lean_inc(x_13);
lean_dec(x_1);
x_15 = l_Lean_MessageData_composePreservingKind(x_14, x_2);
x_16 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_16, 0, x_13);
lean_ctor_set(x_16, 1, x_15);
return x_16;
}
}
case 8:
{
uint8_t x_17; 
x_17 = !lean_is_exclusive(x_1);
if (x_17 == 0)
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_18 = lean_ctor_get(x_1, 0);
x_19 = lean_ctor_get(x_1, 1);
lean_ctor_set_tag(x_1, 7);
lean_ctor_set(x_1, 1, x_2);
lean_ctor_set(x_1, 0, x_19);
x_20 = lean_alloc_ctor(8, 2, 0);
lean_ctor_set(x_20, 0, x_18);
lean_ctor_set(x_20, 1, x_1);
return x_20;
}
else
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
x_21 = lean_ctor_get(x_1, 0);
x_22 = lean_ctor_get(x_1, 1);
lean_inc(x_22);
lean_inc(x_21);
lean_dec(x_1);
x_23 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_23, 0, x_22);
lean_ctor_set(x_23, 1, x_2);
x_24 = lean_alloc_ctor(8, 2, 0);
lean_ctor_set(x_24, 0, x_21);
lean_ctor_set(x_24, 1, x_23);
return x_24;
}
}
default: 
{
lean_object* x_25; 
x_25 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_25, 0, x_1);
lean_ctor_set(x_25, 1, x_2);
return x_25;
}
}
}
}
static lean_object* _init_l_Lean_MessageData_nil___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_nil() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_MessageData_nil___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_mkPPContext(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_ctor_get(x_2, 1);
x_5 = lean_ctor_get(x_2, 2);
x_6 = lean_ctor_get(x_2, 3);
x_7 = lean_ctor_get(x_1, 0);
x_8 = lean_ctor_get(x_1, 1);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_inc_ref(x_5);
lean_inc_ref(x_4);
lean_inc_ref(x_3);
x_9 = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(x_9, 0, x_3);
lean_ctor_set(x_9, 1, x_4);
lean_ctor_set(x_9, 2, x_5);
lean_ctor_set(x_9, 3, x_6);
lean_ctor_set(x_9, 4, x_7);
lean_ctor_set(x_9, 5, x_8);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_mkPPContext___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_MessageData_mkPPContext(x_1, x_2);
lean_dec_ref(x_2);
lean_dec_ref(x_1);
return x_3;
}
}
LEAN_EXPORT uint8_t l_Lean_MessageData_ofSyntax___lam__0(lean_object* x_1) {
_start:
{
uint8_t x_2; 
x_2 = 0;
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofSyntax___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; lean_object* x_6; 
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_10; uint8_t x_11; lean_object* x_12; 
x_10 = lean_box(0);
x_11 = 0;
x_12 = l_Lean_Syntax_formatStx(x_2, x_10, x_11);
x_5 = x_12;
x_6 = lean_box(0);
goto block_9;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec_ref(x_3);
x_14 = l_Lean_ppTerm(x_13, x_2);
x_5 = x_14;
x_6 = lean_box(0);
goto block_9;
}
block_9:
{
lean_object* x_7; lean_object* x_8; 
x_7 = l_Lean_MessageData_ofFormat(x_5);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_1);
lean_ctor_set(x_8, 1, x_7);
return x_8;
}
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofSyntax___lam__0___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Lean_MessageData_ofSyntax___lam__0(x_1);
lean_dec_ref(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofSyntax___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_MessageData_ofSyntax___lam__1(x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofSyntax(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_2 = lean_alloc_closure((void*)(l_Lean_MessageData_ofSyntax___lam__0___boxed), 1, 0);
x_3 = l_Lean_instImpl_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_;
x_4 = lean_box(0);
x_5 = l_Lean_Syntax_copyHeadTailInfoFrom(x_1, x_4);
x_6 = lean_alloc_closure((void*)(l_Lean_MessageData_ofSyntax___lam__1___boxed), 4, 2);
lean_closure_set(x_6, 0, x_3);
lean_closure_set(x_6, 1, x_5);
x_7 = lean_alloc_ctor(10, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_2);
return x_7;
}
}
LEAN_EXPORT uint8_t l_Lean_MessageData_ofExpr___lam__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_3 = l_Lean_instantiateMVarsCore(x_2, x_1);
x_4 = lean_ctor_get(x_3, 0);
lean_inc(x_4);
lean_dec_ref(x_3);
x_5 = l_Lean_Expr_hasSyntheticSorry(x_4);
lean_dec(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofExpr___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; lean_object* x_6; 
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_10 = lean_expr_dbg_to_string(x_2);
lean_dec_ref(x_2);
x_11 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_11, 0, x_10);
x_12 = lean_box(1);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_11);
lean_ctor_set(x_13, 1, x_12);
x_5 = x_13;
x_6 = lean_box(0);
goto block_9;
}
else
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_ctor_get(x_3, 0);
lean_inc(x_14);
lean_dec_ref(x_3);
x_15 = l_Lean_ppExprWithInfos(x_14, x_2);
x_5 = x_15;
x_6 = lean_box(0);
goto block_9;
}
block_9:
{
lean_object* x_7; lean_object* x_8; 
x_7 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_7, 0, x_5);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_1);
lean_ctor_set(x_8, 1, x_7);
return x_8;
}
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofExpr___lam__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Lean_MessageData_ofExpr___lam__0(x_1, x_2);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofExpr___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_MessageData_ofExpr___lam__1(x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofExpr(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
lean_inc_ref(x_1);
x_2 = lean_alloc_closure((void*)(l_Lean_MessageData_ofExpr___lam__0___boxed), 2, 1);
lean_closure_set(x_2, 0, x_1);
x_3 = l_Lean_instImpl_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_;
x_4 = lean_alloc_closure((void*)(l_Lean_MessageData_ofExpr___lam__1___boxed), 4, 2);
lean_closure_set(x_4, 0, x_3);
lean_closure_set(x_4, 1, x_1);
x_5 = lean_alloc_ctor(10, 2, 0);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofLevel___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; lean_object* x_6; 
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_10; lean_object* x_11; 
x_10 = 1;
x_11 = l_Lean_Level_format(x_2, x_10);
x_5 = x_11;
x_6 = lean_box(0);
goto block_9;
}
else
{
lean_object* x_12; lean_object* x_13; 
x_12 = lean_ctor_get(x_3, 0);
lean_inc(x_12);
lean_dec_ref(x_3);
x_13 = l_Lean_ppLevel(x_12, x_2);
x_5 = x_13;
x_6 = lean_box(0);
goto block_9;
}
block_9:
{
lean_object* x_7; lean_object* x_8; 
x_7 = l_Lean_MessageData_ofFormat(x_5);
x_8 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_8, 0, x_1);
lean_ctor_set(x_8, 1, x_7);
return x_8;
}
}
}
static lean_object* _init_l_Lean_MessageData_ofLevel___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_MessageData_ofSyntax___lam__0___boxed), 1, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofLevel___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_MessageData_ofLevel___lam__1(x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofLevel(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_2 = l_Lean_MessageData_ofLevel___closed__0;
x_3 = l_Lean_instImpl_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_;
x_4 = lean_alloc_closure((void*)(l_Lean_MessageData_ofLevel___lam__1___boxed), 4, 2);
lean_closure_set(x_4, 0, x_3);
lean_closure_set(x_4, 1, x_1);
x_5 = lean_alloc_ctor(10, 2, 0);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofName(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_2 = 1;
x_3 = l_Lean_Name_toString(x_1, x_2);
x_4 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_4, 0, x_3);
x_5 = l_Lean_MessageData_ofFormat(x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_MessageData_ofConstName___lam__1___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("pp", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_ofConstName___lam__1___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("fullNames", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_ofConstName___lam__1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_MessageData_ofConstName___lam__1___closed__1;
x_2 = l_Lean_MessageData_ofConstName___lam__1___closed__0;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofConstName___lam__1(lean_object* x_1, lean_object* x_2, uint8_t x_3, lean_object* x_4) {
_start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_11; 
if (lean_obj_tag(x_4) == 0)
{
uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_13 = 1;
x_14 = l_Lean_Name_toString(x_2, x_13);
x_15 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_15, 0, x_14);
x_16 = lean_box(1);
x_17 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_17, 0, x_15);
lean_ctor_set(x_17, 1, x_16);
x_6 = x_17;
x_7 = lean_box(0);
goto block_10;
}
else
{
if (x_3 == 0)
{
lean_object* x_18; lean_object* x_19; 
x_18 = lean_ctor_get(x_4, 0);
lean_inc(x_18);
lean_dec_ref(x_4);
x_19 = l_Lean_ppConstNameWithInfos(x_18, x_2);
x_11 = x_19;
goto block_12;
}
else
{
lean_object* x_20; uint8_t x_21; 
x_20 = lean_ctor_get(x_4, 0);
lean_inc(x_20);
lean_dec_ref(x_4);
x_21 = !lean_is_exclusive(x_20);
if (x_21 == 0)
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; 
x_22 = lean_ctor_get(x_20, 3);
x_23 = l_Lean_MessageData_ofConstName___lam__1___closed__2;
x_24 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_24, 0, x_3);
x_25 = l_Lean_KVMap_insert(x_22, x_23, x_24);
lean_ctor_set(x_20, 3, x_25);
x_26 = l_Lean_ppConstNameWithInfos(x_20, x_2);
x_11 = x_26;
goto block_12;
}
else
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; 
x_27 = lean_ctor_get(x_20, 0);
x_28 = lean_ctor_get(x_20, 1);
x_29 = lean_ctor_get(x_20, 2);
x_30 = lean_ctor_get(x_20, 3);
x_31 = lean_ctor_get(x_20, 4);
x_32 = lean_ctor_get(x_20, 5);
lean_inc(x_32);
lean_inc(x_31);
lean_inc(x_30);
lean_inc(x_29);
lean_inc(x_28);
lean_inc(x_27);
lean_dec(x_20);
x_33 = l_Lean_MessageData_ofConstName___lam__1___closed__2;
x_34 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_34, 0, x_3);
x_35 = l_Lean_KVMap_insert(x_30, x_33, x_34);
x_36 = lean_alloc_ctor(0, 6, 0);
lean_ctor_set(x_36, 0, x_27);
lean_ctor_set(x_36, 1, x_28);
lean_ctor_set(x_36, 2, x_29);
lean_ctor_set(x_36, 3, x_35);
lean_ctor_set(x_36, 4, x_31);
lean_ctor_set(x_36, 5, x_32);
x_37 = l_Lean_ppConstNameWithInfos(x_36, x_2);
x_11 = x_37;
goto block_12;
}
}
}
block_10:
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_8, 0, x_6);
x_9 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_9, 0, x_1);
lean_ctor_set(x_9, 1, x_8);
return x_9;
}
block_12:
{
x_6 = x_11;
x_7 = lean_box(0);
goto block_10;
}
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofConstName___lam__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
uint8_t x_6; lean_object* x_7; 
x_6 = lean_unbox(x_3);
x_7 = l_Lean_MessageData_ofConstName___lam__1(x_1, x_2, x_6, x_4);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofConstName(lean_object* x_1, uint8_t x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_3 = l_Lean_MessageData_ofLevel___closed__0;
x_4 = l_Lean_instImpl_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_;
x_5 = lean_box(x_2);
x_6 = lean_alloc_closure((void*)(l_Lean_MessageData_ofConstName___lam__1___boxed), 5, 3);
lean_closure_set(x_6, 0, x_4);
lean_closure_set(x_6, 1, x_1);
lean_closure_set(x_6, 2, x_5);
x_7 = lean_alloc_ctor(10, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_3);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofConstName___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = lean_unbox(x_2);
x_4 = l_Lean_MessageData_ofConstName(x_1, x_3);
return x_4;
}
}
static lean_object* _init_l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0));
return x_1;
}
}
static lean_object* _init_l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit___closed__0;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit___closed__1;
x_2 = lean_unsigned_to_nat(0u);
x_3 = lean_alloc_ctor(0, 9, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_2);
lean_ctor_set(x_3, 2, x_2);
lean_ctor_set(x_3, 3, x_1);
lean_ctor_set(x_3, 4, x_1);
lean_ctor_set(x_3, 5, x_1);
lean_ctor_set(x_3, 6, x_1);
lean_ctor_set(x_3, 7, x_1);
lean_ctor_set(x_3, 8, x_1);
return x_3;
}
}
LEAN_EXPORT uint8_t l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit(lean_object* x_1, lean_object* x_2) {
_start:
{
switch (lean_obj_tag(x_2)) {
case 10:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; 
x_3 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_3);
lean_dec_ref(x_2);
x_4 = l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit___closed__2;
x_5 = lean_apply_1(x_3, x_4);
x_6 = lean_unbox(x_5);
return x_6;
}
else
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_7 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_7);
lean_dec_ref(x_2);
x_8 = lean_ctor_get(x_1, 0);
lean_inc(x_8);
lean_dec_ref(x_1);
x_9 = lean_apply_1(x_7, x_8);
x_10 = lean_unbox(x_9);
return x_10;
}
}
case 3:
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
lean_dec(x_1);
x_11 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_11);
x_12 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_12);
lean_dec_ref(x_2);
x_13 = lean_ctor_get(x_11, 1);
lean_inc_ref(x_13);
lean_dec_ref(x_11);
x_14 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_14, 0, x_13);
x_1 = x_14;
x_2 = x_12;
goto _start;
}
case 4:
{
lean_object* x_16; 
x_16 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_16);
lean_dec_ref(x_2);
x_2 = x_16;
goto _start;
}
case 5:
{
lean_object* x_18; 
x_18 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_18);
lean_dec_ref(x_2);
x_2 = x_18;
goto _start;
}
case 6:
{
lean_object* x_20; 
x_20 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_20);
lean_dec_ref(x_2);
x_2 = x_20;
goto _start;
}
case 7:
{
lean_object* x_22; lean_object* x_23; uint8_t x_24; 
x_22 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_22);
x_23 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_23);
lean_dec_ref(x_2);
lean_inc(x_1);
x_24 = l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit(x_1, x_22);
if (x_24 == 0)
{
x_2 = x_23;
goto _start;
}
else
{
lean_dec_ref(x_23);
lean_dec(x_1);
return x_24;
}
}
case 8:
{
lean_object* x_26; 
x_26 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_26);
lean_dec_ref(x_2);
x_2 = x_26;
goto _start;
}
case 9:
{
lean_object* x_28; lean_object* x_29; uint8_t x_30; 
x_28 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_28);
x_29 = lean_ctor_get(x_2, 2);
lean_inc_ref(x_29);
lean_dec_ref(x_2);
lean_inc(x_1);
x_30 = l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit(x_1, x_28);
if (x_30 == 0)
{
lean_object* x_31; lean_object* x_32; uint8_t x_33; 
x_31 = lean_unsigned_to_nat(0u);
x_32 = lean_array_get_size(x_29);
x_33 = lean_nat_dec_lt(x_31, x_32);
if (x_33 == 0)
{
lean_dec(x_32);
lean_dec_ref(x_29);
lean_dec(x_1);
return x_30;
}
else
{
if (x_33 == 0)
{
lean_dec(x_32);
lean_dec_ref(x_29);
lean_dec(x_1);
return x_30;
}
else
{
size_t x_34; size_t x_35; uint8_t x_36; 
x_34 = 0;
x_35 = lean_usize_of_nat(x_32);
lean_dec(x_32);
x_36 = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00__private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit_spec__0(x_1, x_29, x_34, x_35);
lean_dec_ref(x_29);
return x_36;
}
}
}
else
{
lean_dec_ref(x_29);
lean_dec(x_1);
return x_30;
}
}
default: 
{
uint8_t x_37; 
lean_dec_ref(x_2);
lean_dec(x_1);
x_37 = 0;
return x_37;
}
}
}
}
LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00__private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit_spec__0(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_eq(x_3, x_4);
if (x_5 == 0)
{
lean_object* x_6; uint8_t x_7; 
x_6 = lean_array_uget(x_2, x_3);
lean_inc(x_1);
x_7 = l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit(x_1, x_6);
if (x_7 == 0)
{
size_t x_8; size_t x_9; 
x_8 = 1;
x_9 = lean_usize_add(x_3, x_8);
x_3 = x_9;
goto _start;
}
else
{
lean_dec(x_1);
return x_7;
}
}
else
{
uint8_t x_11; 
lean_dec(x_1);
x_11 = 0;
return x_11;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00__private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; uint8_t x_7; lean_object* x_8; 
x_5 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_6 = lean_unbox_usize(x_4);
lean_dec(x_4);
x_7 = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00__private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit_spec__0(x_1, x_2, x_5, x_6);
lean_dec_ref(x_2);
x_8 = lean_box(x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit(x_1, x_2);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT uint8_t l_Lean_MessageData_hasSyntheticSorry(lean_object* x_1) {
_start:
{
lean_object* x_2; uint8_t x_3; 
x_2 = lean_box(0);
x_3 = l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_hasSyntheticSorry___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Lean_MessageData_hasSyntheticSorry(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_MessageData_initFn___closed__0_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("maxTraceChildren", 16, 16);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_initFn___closed__1_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_initFn___closed__0_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_initFn___closed__2_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Maximum number of trace node children to display", 48, 48);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_initFn___closed__3_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_MessageData_initFn___closed__2_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_;
x_2 = lean_unsigned_to_nat(50u);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_MessageData_initFn___closed__4_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_MessageData_initFn___closed__0_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_;
x_2 = l_Lean_instImpl___closed__1_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_;
x_3 = l_Lean_instImpl___closed__0_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_register___at___00Lean_MessageData_initFn_00___x40_Lean_Message_1084813479____hygCtx___hyg_4__spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_5; 
x_5 = !lean_is_exclusive(x_2);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_6 = lean_ctor_get(x_2, 0);
x_7 = lean_ctor_get(x_2, 1);
lean_inc(x_6);
x_8 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_8, 0, x_6);
lean_inc(x_1);
x_9 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_9, 0, x_1);
lean_ctor_set(x_9, 1, x_3);
lean_ctor_set(x_9, 2, x_8);
lean_ctor_set(x_9, 3, x_7);
lean_inc(x_1);
x_10 = lean_register_option(x_1, x_9);
if (lean_obj_tag(x_10) == 0)
{
uint8_t x_11; 
x_11 = !lean_is_exclusive(x_10);
if (x_11 == 0)
{
lean_object* x_12; 
x_12 = lean_ctor_get(x_10, 0);
lean_dec(x_12);
lean_ctor_set(x_2, 1, x_6);
lean_ctor_set(x_2, 0, x_1);
lean_ctor_set(x_10, 0, x_2);
return x_10;
}
else
{
lean_object* x_13; 
lean_dec(x_10);
lean_ctor_set(x_2, 1, x_6);
lean_ctor_set(x_2, 0, x_1);
x_13 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_13, 0, x_2);
return x_13;
}
}
else
{
uint8_t x_14; 
lean_free_object(x_2);
lean_dec(x_6);
lean_dec(x_1);
x_14 = !lean_is_exclusive(x_10);
if (x_14 == 0)
{
return x_10;
}
else
{
lean_object* x_15; lean_object* x_16; 
x_15 = lean_ctor_get(x_10, 0);
lean_inc(x_15);
lean_dec(x_10);
x_16 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_16, 0, x_15);
return x_16;
}
}
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_17 = lean_ctor_get(x_2, 0);
x_18 = lean_ctor_get(x_2, 1);
lean_inc(x_18);
lean_inc(x_17);
lean_dec(x_2);
lean_inc(x_17);
x_19 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_19, 0, x_17);
lean_inc(x_1);
x_20 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_20, 0, x_1);
lean_ctor_set(x_20, 1, x_3);
lean_ctor_set(x_20, 2, x_19);
lean_ctor_set(x_20, 3, x_18);
lean_inc(x_1);
x_21 = lean_register_option(x_1, x_20);
if (lean_obj_tag(x_21) == 0)
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; 
if (lean_is_exclusive(x_21)) {
 lean_ctor_release(x_21, 0);
 x_22 = x_21;
} else {
 lean_dec_ref(x_21);
 x_22 = lean_box(0);
}
x_23 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_23, 0, x_1);
lean_ctor_set(x_23, 1, x_17);
if (lean_is_scalar(x_22)) {
 x_24 = lean_alloc_ctor(0, 1, 0);
} else {
 x_24 = x_22;
}
lean_ctor_set(x_24, 0, x_23);
return x_24;
}
else
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; 
lean_dec(x_17);
lean_dec(x_1);
x_25 = lean_ctor_get(x_21, 0);
lean_inc(x_25);
if (lean_is_exclusive(x_21)) {
 lean_ctor_release(x_21, 0);
 x_26 = x_21;
} else {
 lean_dec_ref(x_21);
 x_26 = lean_box(0);
}
if (lean_is_scalar(x_26)) {
 x_27 = lean_alloc_ctor(1, 1, 0);
} else {
 x_27 = x_26;
}
lean_ctor_set(x_27, 0, x_25);
return x_27;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_initFn_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_() {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_2 = l_Lean_MessageData_initFn___closed__1_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_;
x_3 = l_Lean_MessageData_initFn___closed__3_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_;
x_4 = l_Lean_MessageData_initFn___closed__4_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_;
x_5 = l_Lean_Option_register___at___00Lean_MessageData_initFn_00___x40_Lean_Message_1084813479____hygCtx___hyg_4__spec__0(x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_initFn_00___x40_Lean_Message_1084813479____hygCtx___hyg_4____boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_MessageData_initFn_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_();
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Option_register___at___00Lean_MessageData_initFn_00___x40_Lean_Message_1084813479____hygCtx___hyg_4__spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Option_register___at___00Lean_MessageData_initFn_00___x40_Lean_Message_1084813479____hygCtx___hyg_4__spec__0(x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Nat_cast___at___00Lean_MessageData_formatAux_spec__0(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_nat_to_int(x_1);
return x_2;
}
}
static lean_object* _init_l_panic___at___00Lean_MessageData_formatAux_spec__4___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_instMonadST(lean_box(0));
return x_1;
}
}
LEAN_EXPORT lean_object* l_panic___at___00Lean_MessageData_formatAux_spec__4(lean_object* x_1) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_3 = l_panic___at___00Lean_MessageData_formatAux_spec__4___closed__0;
x_4 = lean_box(0);
x_5 = l_instInhabitedOfMonad___redArg(x_3, x_4);
x_6 = lean_panic_fn(x_5, x_1);
x_7 = lean_apply_1(x_6, lean_box(0));
return x_7;
}
}
LEAN_EXPORT lean_object* l_List_foldl___at___00Std_Format_joinSep___at___00Lean_MessageData_formatAux_spec__2_spec__2(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
lean_dec(x_1);
return x_2;
}
else
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = lean_ctor_get(x_3, 1);
lean_inc(x_1);
lean_ctor_set_tag(x_3, 5);
lean_ctor_set(x_3, 1, x_1);
lean_ctor_set(x_3, 0, x_2);
x_7 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_7, 0, x_3);
lean_ctor_set(x_7, 1, x_5);
x_2 = x_7;
x_3 = x_6;
goto _start;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_9 = lean_ctor_get(x_3, 0);
x_10 = lean_ctor_get(x_3, 1);
lean_inc(x_10);
lean_inc(x_9);
lean_dec(x_3);
lean_inc(x_1);
x_11 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_11, 0, x_2);
lean_ctor_set(x_11, 1, x_1);
x_12 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_12, 0, x_11);
lean_ctor_set(x_12, 1, x_9);
x_2 = x_12;
x_3 = x_10;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Std_Format_joinSep___at___00Lean_MessageData_formatAux_spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_3; 
lean_dec(x_2);
x_3 = lean_box(0);
return x_3;
}
else
{
lean_object* x_4; 
x_4 = lean_ctor_get(x_1, 1);
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; 
lean_dec(x_2);
x_5 = lean_ctor_get(x_1, 0);
lean_inc(x_5);
lean_dec_ref(x_1);
return x_5;
}
else
{
lean_object* x_6; lean_object* x_7; 
lean_inc(x_4);
x_6 = lean_ctor_get(x_1, 0);
lean_inc(x_6);
lean_dec_ref(x_1);
x_7 = l_List_foldl___at___00Std_Format_joinSep___at___00Lean_MessageData_formatAux_spec__2_spec__2(x_2, x_6, x_4);
return x_7;
}
}
}
}
static lean_object* _init_l_Lean_MessageData_formatAux___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_mkErrorStringWithPos___closed__1;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_formatAux___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(2u);
x_2 = lean_nat_to_int(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_formatAux___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("\n", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_formatAux___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_formatAux___closed__2;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_formatAux___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("[", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_formatAux___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_formatAux___closed__4;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_formatAux___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("]", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_formatAux___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_formatAux___closed__6;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_formatAux___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(" [", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_formatAux___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_formatAux___closed__8;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static double _init_l_Lean_MessageData_formatAux___closed__10() {
_start:
{
lean_object* x_1; double x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_float_of_nat(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_formatAux___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean.Message", 12, 12);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_formatAux___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean.MessageData.formatAux", 26, 26);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_formatAux___closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("MessageData.ofLazy: expected MessageData in Dynamic, got ", 57, 57);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_formatAux(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
switch (lean_obj_tag(x_3)) {
case 0:
{
lean_object* x_5; lean_object* x_6; 
lean_dec(x_2);
lean_dec_ref(x_1);
x_5 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_5);
lean_dec_ref(x_3);
x_6 = lean_ctor_get(x_5, 0);
lean_inc(x_6);
lean_dec_ref(x_5);
return x_6;
}
case 1:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_7; lean_object* x_8; 
lean_dec_ref(x_1);
x_7 = lean_ctor_get(x_3, 0);
lean_inc(x_7);
lean_dec_ref(x_3);
x_8 = l_Lean_formatRawGoal(x_7);
return x_8;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_9 = lean_ctor_get(x_3, 0);
lean_inc(x_9);
lean_dec_ref(x_3);
x_10 = lean_ctor_get(x_2, 0);
lean_inc(x_10);
lean_dec_ref(x_2);
x_11 = l_Lean_MessageData_mkPPContext(x_1, x_10);
lean_dec(x_10);
lean_dec_ref(x_1);
x_12 = l_Lean_ppGoal(x_11, x_9);
return x_12;
}
}
case 3:
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; 
lean_dec(x_2);
x_13 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_13);
x_14 = lean_ctor_get(x_3, 1);
lean_inc_ref(x_14);
lean_dec_ref(x_3);
x_15 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_15, 0, x_13);
x_2 = x_15;
x_3 = x_14;
goto _start;
}
case 4:
{
lean_object* x_17; lean_object* x_18; 
lean_dec_ref(x_1);
x_17 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_17);
x_18 = lean_ctor_get(x_3, 1);
lean_inc_ref(x_18);
lean_dec_ref(x_3);
x_1 = x_17;
x_3 = x_18;
goto _start;
}
case 5:
{
uint8_t x_20; 
x_20 = !lean_is_exclusive(x_3);
if (x_20 == 0)
{
lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; 
x_21 = lean_ctor_get(x_3, 0);
x_22 = lean_ctor_get(x_3, 1);
x_23 = l_Lean_MessageData_formatAux(x_1, x_2, x_22);
x_24 = lean_nat_to_int(x_21);
lean_ctor_set_tag(x_3, 4);
lean_ctor_set(x_3, 1, x_23);
lean_ctor_set(x_3, 0, x_24);
return x_3;
}
else
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_25 = lean_ctor_get(x_3, 0);
x_26 = lean_ctor_get(x_3, 1);
lean_inc(x_26);
lean_inc(x_25);
lean_dec(x_3);
x_27 = l_Lean_MessageData_formatAux(x_1, x_2, x_26);
x_28 = lean_nat_to_int(x_25);
x_29 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_29, 0, x_28);
lean_ctor_set(x_29, 1, x_27);
return x_29;
}
}
case 6:
{
lean_object* x_30; lean_object* x_31; uint8_t x_32; lean_object* x_33; 
x_30 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_30);
lean_dec_ref(x_3);
x_31 = l_Lean_MessageData_formatAux(x_1, x_2, x_30);
x_32 = 0;
x_33 = lean_alloc_ctor(6, 1, 1);
lean_ctor_set(x_33, 0, x_31);
lean_ctor_set_uint8(x_33, sizeof(void*)*1, x_32);
return x_33;
}
case 7:
{
uint8_t x_34; 
x_34 = !lean_is_exclusive(x_3);
if (x_34 == 0)
{
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; 
x_35 = lean_ctor_get(x_3, 0);
x_36 = lean_ctor_get(x_3, 1);
lean_inc(x_2);
lean_inc_ref(x_1);
x_37 = l_Lean_MessageData_formatAux(x_1, x_2, x_35);
x_38 = l_Lean_MessageData_formatAux(x_1, x_2, x_36);
lean_ctor_set_tag(x_3, 5);
lean_ctor_set(x_3, 1, x_38);
lean_ctor_set(x_3, 0, x_37);
return x_3;
}
else
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; 
x_39 = lean_ctor_get(x_3, 0);
x_40 = lean_ctor_get(x_3, 1);
lean_inc(x_40);
lean_inc(x_39);
lean_dec(x_3);
lean_inc(x_2);
lean_inc_ref(x_1);
x_41 = l_Lean_MessageData_formatAux(x_1, x_2, x_39);
x_42 = l_Lean_MessageData_formatAux(x_1, x_2, x_40);
x_43 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_43, 0, x_41);
lean_ctor_set(x_43, 1, x_42);
return x_43;
}
}
case 9:
{
lean_object* x_44; lean_object* x_45; lean_object* x_46; size_t x_47; size_t x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_64; double x_65; double x_66; uint8_t x_67; 
x_44 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_44);
x_45 = lean_ctor_get(x_3, 1);
lean_inc_ref(x_45);
x_46 = lean_ctor_get(x_3, 2);
lean_inc_ref(x_46);
lean_dec_ref(x_3);
x_47 = lean_array_size(x_46);
x_48 = 0;
lean_inc(x_2);
lean_inc_ref(x_1);
x_49 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_MessageData_formatAux_spec__1(x_1, x_2, x_47, x_48, x_46);
x_64 = lean_ctor_get(x_44, 0);
lean_inc(x_64);
x_65 = lean_ctor_get_float(x_44, sizeof(void*)*2);
x_66 = lean_ctor_get_float(x_44, sizeof(void*)*2 + 8);
lean_dec_ref(x_44);
x_67 = l_Lean_Name_isAnonymous(x_64);
if (x_67 == 0)
{
lean_object* x_68; uint8_t x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; double x_83; uint8_t x_84; 
x_68 = l_Lean_MessageData_formatAux___closed__5;
x_69 = 1;
x_70 = l_Lean_Name_toString(x_64, x_69);
x_71 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_71, 0, x_70);
x_72 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_72, 0, x_68);
lean_ctor_set(x_72, 1, x_71);
x_73 = l_Lean_MessageData_formatAux___closed__7;
x_74 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_74, 0, x_72);
lean_ctor_set(x_74, 1, x_73);
x_83 = l_Lean_MessageData_formatAux___closed__10;
x_84 = lean_float_beq(x_65, x_83);
if (x_84 == 0)
{
goto block_82;
}
else
{
if (x_67 == 0)
{
x_50 = x_74;
x_51 = lean_box(0);
goto block_63;
}
else
{
goto block_82;
}
}
block_82:
{
lean_object* x_75; lean_object* x_76; double x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; 
x_75 = l_Lean_MessageData_formatAux___closed__9;
x_76 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_76, 0, x_74);
lean_ctor_set(x_76, 1, x_75);
x_77 = lean_float_sub(x_66, x_65);
x_78 = lean_float_to_string(x_77);
x_79 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_79, 0, x_78);
x_80 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_80, 0, x_76);
lean_ctor_set(x_80, 1, x_79);
x_81 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_81, 0, x_80);
lean_ctor_set(x_81, 1, x_73);
x_50 = x_81;
x_51 = lean_box(0);
goto block_63;
}
}
else
{
lean_object* x_85; lean_object* x_86; lean_object* x_87; 
lean_dec(x_64);
lean_dec_ref(x_45);
lean_dec(x_2);
lean_dec_ref(x_1);
x_85 = lean_array_to_list(x_49);
x_86 = l_Lean_MessageData_formatAux___closed__3;
x_87 = l_Std_Format_joinSep___at___00Lean_MessageData_formatAux_spec__2(x_85, x_86);
return x_87;
}
block_63:
{
lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; 
x_52 = l_Lean_MessageData_formatAux(x_1, x_2, x_45);
x_53 = l_Lean_MessageData_formatAux___closed__0;
x_54 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_54, 0, x_50);
lean_ctor_set(x_54, 1, x_53);
x_55 = l_Lean_MessageData_formatAux___closed__1;
x_56 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_56, 0, x_55);
lean_ctor_set(x_56, 1, x_52);
x_57 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_57, 0, x_54);
lean_ctor_set(x_57, 1, x_56);
x_58 = lean_array_to_list(x_49);
x_59 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_59, 0, x_57);
lean_ctor_set(x_59, 1, x_58);
x_60 = l_Lean_MessageData_formatAux___closed__3;
x_61 = l_Std_Format_joinSep___at___00Lean_MessageData_formatAux_spec__2(x_59, x_60);
x_62 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_62, 0, x_55);
lean_ctor_set(x_62, 1, x_61);
return x_62;
}
}
case 10:
{
lean_object* x_88; lean_object* x_89; lean_object* x_90; 
x_88 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_88);
lean_dec_ref(x_3);
x_89 = l_Lean_instImpl_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_;
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_107; 
x_107 = lean_box(0);
x_90 = x_107;
goto block_106;
}
else
{
lean_object* x_108; lean_object* x_109; lean_object* x_110; 
x_108 = lean_ctor_get(x_2, 0);
x_109 = l_Lean_MessageData_mkPPContext(x_1, x_108);
x_110 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_110, 0, x_109);
x_90 = x_110;
goto block_106;
}
block_106:
{
lean_object* x_91; lean_object* x_92; 
x_91 = lean_apply_2(x_88, x_90, lean_box(0));
x_92 = l___private_Init_Dynamic_0__Dynamic_get_x3fImpl___redArg(x_91, x_89);
if (lean_obj_tag(x_92) == 1)
{
lean_object* x_93; 
lean_dec(x_91);
x_93 = lean_ctor_get(x_92, 0);
lean_inc(x_93);
lean_dec_ref(x_92);
x_3 = x_93;
goto _start;
}
else
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; uint8_t x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; 
lean_dec(x_92);
lean_dec(x_2);
lean_dec_ref(x_1);
x_95 = l_Lean_MessageData_formatAux___closed__11;
x_96 = l_Lean_MessageData_formatAux___closed__12;
x_97 = lean_unsigned_to_nat(308u);
x_98 = lean_unsigned_to_nat(8u);
x_99 = l_Lean_MessageData_formatAux___closed__13;
x_100 = l___private_Init_Dynamic_0__Dynamic_typeNameImpl(x_91);
lean_dec(x_91);
x_101 = 1;
x_102 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_100, x_101);
x_103 = lean_string_append(x_99, x_102);
lean_dec_ref(x_102);
x_104 = l_mkPanicMessageWithDecl(x_95, x_96, x_97, x_98, x_103);
lean_dec_ref(x_103);
x_105 = l_panic___at___00Lean_MessageData_formatAux_spec__4(x_104);
return x_105;
}
}
}
default: 
{
lean_object* x_111; 
x_111 = lean_ctor_get(x_3, 1);
lean_inc_ref(x_111);
lean_dec_ref(x_3);
x_3 = x_111;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_MessageData_formatAux_spec__1(lean_object* x_1, lean_object* x_2, size_t x_3, size_t x_4, lean_object* x_5) {
_start:
{
uint8_t x_7; 
x_7 = lean_usize_dec_lt(x_4, x_3);
if (x_7 == 0)
{
lean_dec(x_2);
lean_dec_ref(x_1);
return x_5;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; size_t x_12; size_t x_13; lean_object* x_14; 
x_8 = lean_array_uget(x_5, x_4);
lean_inc(x_2);
lean_inc_ref(x_1);
x_9 = l_Lean_MessageData_formatAux(x_1, x_2, x_8);
x_10 = lean_unsigned_to_nat(0u);
x_11 = lean_array_uset(x_5, x_4, x_10);
x_12 = 1;
x_13 = lean_usize_add(x_4, x_12);
x_14 = lean_array_uset(x_11, x_4, x_9);
x_4 = x_13;
x_5 = x_14;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_panic___at___00Lean_MessageData_formatAux_spec__4___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_panic___at___00Lean_MessageData_formatAux_spec__4(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_MessageData_formatAux_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
size_t x_7; size_t x_8; lean_object* x_9; 
x_7 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_8 = lean_unbox_usize(x_4);
lean_dec(x_4);
x_9 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_MessageData_formatAux_spec__1(x_1, x_2, x_7, x_8, x_5);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_formatAux___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_MessageData_formatAux(x_1, x_2, x_3);
return x_5;
}
}
static lean_object* _init_l_Lean_MessageData_format___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = lean_box(0);
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_format(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = l_Lean_MessageData_format___closed__0;
x_5 = l_Lean_MessageData_formatAux(x_4, x_2, x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_format___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_MessageData_format(x_1, x_2);
return x_4;
}
}
static lean_object* _init_l_Lean_MessageData_toString___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Std_Format_defWidth;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_toString(lean_object* x_1) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_3 = lean_box(0);
x_4 = l_Lean_MessageData_format(x_1, x_3);
x_5 = l_Lean_MessageData_toString___closed__0;
x_6 = lean_unsigned_to_nat(0u);
x_7 = l_Std_Format_pretty(x_4, x_5, x_6, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_toString___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_MessageData_toString(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_instAppend___lam__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_3, 0, x_1);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_MessageData_instAppend() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_MessageData_instAppend___lam__0), 2, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_instCoeString___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_instCoeString___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_MessageData_ofFormat), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_instCoeString() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_alloc_closure((void*)(l_Lean_MessageData_instCoeString___lam__0), 1, 0);
x_2 = l_Lean_MessageData_instCoeString___closed__0;
x_3 = lean_alloc_closure((void*)(l_Function_comp), 6, 5);
lean_closure_set(x_3, 0, lean_box(0));
lean_closure_set(x_3, 1, lean_box(0));
lean_closure_set(x_3, 2, lean_box(0));
lean_closure_set(x_3, 3, x_2);
lean_closure_set(x_3, 4, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_MessageData_instCoeFormat() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_MessageData_instCoeString___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_instCoeLevel___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_MessageData_ofLevel), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_instCoeLevel() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_MessageData_instCoeLevel___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_instCoeExpr___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_MessageData_ofExpr), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_instCoeExpr() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_MessageData_instCoeExpr___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_instCoeName___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_MessageData_ofName), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_instCoeName() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_MessageData_instCoeName___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_instCoeSyntax___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_MessageData_ofSyntax), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_instCoeSyntax() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_MessageData_instCoeSyntax___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_instCoeMVarId___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_instCoeMVarId() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_MessageData_instCoeMVarId___lam__0), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_instCoeOptionExpr___lam__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("none", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_instCoeOptionExpr___lam__0___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_instCoeOptionExpr___lam__0___closed__0;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_instCoeOptionExpr___lam__0___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_instCoeOptionExpr___lam__0___closed__1;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_instCoeOptionExpr___lam__0(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; 
x_2 = l_Lean_MessageData_instCoeOptionExpr___lam__0___closed__2;
return x_2;
}
else
{
lean_object* x_3; lean_object* x_4; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc(x_3);
lean_dec_ref(x_1);
x_4 = l_Lean_MessageData_ofExpr(x_3);
return x_4;
}
}
}
static lean_object* _init_l_Lean_MessageData_instCoeOptionExpr() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_MessageData_instCoeOptionExpr___lam__0), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_arrayExpr_toMessageData___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_formatAux___closed__7;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_arrayExpr_toMessageData___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(", ", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_arrayExpr_toMessageData___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_arrayExpr_toMessageData___closed__1;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_arrayExpr_toMessageData___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_arrayExpr_toMessageData___closed__2;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_arrayExpr_toMessageData(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_9; uint8_t x_10; 
x_9 = lean_array_get_size(x_1);
x_10 = lean_nat_dec_lt(x_2, x_9);
lean_dec(x_9);
if (x_10 == 0)
{
lean_object* x_11; lean_object* x_12; 
lean_dec(x_2);
x_11 = l_Lean_MessageData_arrayExpr_toMessageData___closed__0;
x_12 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_12, 0, x_3);
lean_ctor_set(x_12, 1, x_11);
return x_12;
}
else
{
lean_object* x_13; lean_object* x_14; uint8_t x_15; 
x_13 = lean_array_fget_borrowed(x_1, x_2);
x_14 = lean_unsigned_to_nat(0u);
x_15 = lean_nat_dec_eq(x_2, x_14);
if (x_15 == 0)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_16 = l_Lean_MessageData_arrayExpr_toMessageData___closed__3;
x_17 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_17, 0, x_3);
lean_ctor_set(x_17, 1, x_16);
lean_inc(x_13);
x_18 = l_Lean_MessageData_ofExpr(x_13);
x_19 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_19, 0, x_17);
lean_ctor_set(x_19, 1, x_18);
x_4 = x_19;
goto block_8;
}
else
{
lean_object* x_20; lean_object* x_21; 
lean_inc(x_13);
x_20 = l_Lean_MessageData_ofExpr(x_13);
x_21 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_21, 0, x_3);
lean_ctor_set(x_21, 1, x_20);
x_4 = x_21;
goto block_8;
}
}
block_8:
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_unsigned_to_nat(1u);
x_6 = lean_nat_add(x_2, x_5);
lean_dec(x_2);
x_2 = x_6;
x_3 = x_4;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_arrayExpr_toMessageData___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_MessageData_arrayExpr_toMessageData(x_1, x_2, x_3);
lean_dec_ref(x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_MessageData_instCoeArrayExpr___lam__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("#[", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_instCoeArrayExpr___lam__0___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_instCoeArrayExpr___lam__0___closed__0;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_instCoeArrayExpr___lam__0___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_instCoeArrayExpr___lam__0___closed__1;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_instCoeArrayExpr___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = lean_unsigned_to_nat(0u);
x_3 = l_Lean_MessageData_instCoeArrayExpr___lam__0___closed__2;
x_4 = l_Lean_MessageData_arrayExpr_toMessageData(x_1, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_instCoeArrayExpr___lam__0___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_MessageData_instCoeArrayExpr___lam__0(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_instCoeArrayExpr() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_MessageData_instCoeArrayExpr___lam__0___boxed), 1, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_bracket(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_4 = lean_string_length(x_1);
x_5 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_5, 0, x_1);
x_6 = l_Lean_MessageData_ofFormat(x_5);
x_7 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_2);
x_8 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_8, 0, x_3);
x_9 = l_Lean_MessageData_ofFormat(x_8);
x_10 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_10, 0, x_7);
lean_ctor_set(x_10, 1, x_9);
x_11 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_11, 0, x_4);
lean_ctor_set(x_11, 1, x_10);
x_12 = lean_alloc_ctor(6, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_paren(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l_Lean_mkErrorStringWithPos___closed__3;
x_3 = l_Lean_mkErrorStringWithPos___closed__4;
x_4 = l_Lean_MessageData_bracket(x_2, x_1, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_sbracket(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l_Lean_MessageData_formatAux___closed__4;
x_3 = l_Lean_MessageData_formatAux___closed__6;
x_4 = l_Lean_MessageData_bracket(x_2, x_1, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_joinSep(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_3; 
lean_dec_ref(x_2);
x_3 = l_Lean_MessageData_nil___closed__0;
return x_3;
}
else
{
lean_object* x_4; 
x_4 = lean_ctor_get(x_1, 1);
if (lean_obj_tag(x_4) == 0)
{
lean_object* x_5; 
lean_dec_ref(x_2);
x_5 = lean_ctor_get(x_1, 0);
lean_inc(x_5);
lean_dec_ref(x_1);
return x_5;
}
else
{
uint8_t x_6; 
lean_inc(x_4);
x_6 = !lean_is_exclusive(x_1);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_7 = lean_ctor_get(x_1, 1);
lean_dec(x_7);
lean_inc_ref(x_2);
lean_ctor_set_tag(x_1, 7);
lean_ctor_set(x_1, 1, x_2);
x_8 = l_Lean_MessageData_joinSep(x_4, x_2);
x_9 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_9, 0, x_1);
lean_ctor_set(x_9, 1, x_8);
return x_9;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_10 = lean_ctor_get(x_1, 0);
lean_inc(x_10);
lean_dec(x_1);
lean_inc_ref(x_2);
x_11 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_11, 0, x_10);
lean_ctor_set(x_11, 1, x_2);
x_12 = l_Lean_MessageData_joinSep(x_4, x_2);
x_13 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_13, 0, x_11);
lean_ctor_set(x_13, 1, x_12);
return x_13;
}
}
}
}
}
static lean_object* _init_l_Lean_MessageData_ofList___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("[]", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_ofList___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_ofList___closed__0;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_ofList___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_ofList___closed__1;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_ofList___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(",", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_ofList___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_ofList___closed__3;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_ofList___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_ofList___closed__4;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_ofList___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(1);
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_ofList___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_MessageData_ofList___closed__6;
x_2 = l_Lean_MessageData_ofList___closed__5;
x_3 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofList(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; 
x_2 = l_Lean_MessageData_ofList___closed__2;
return x_2;
}
else
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = l_Lean_MessageData_ofList___closed__7;
x_4 = l_Lean_MessageData_joinSep(x_1, x_3);
x_5 = l_Lean_MessageData_sbracket(x_4);
return x_5;
}
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_ofArray(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_array_to_list(x_1);
x_3 = l_Lean_MessageData_ofList(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_MessageData_orList___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("– none –", 12, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_orList___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_orList___closed__0;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_orList___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_orList___closed__1;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_orList___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(" or ", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_orList___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_orList___closed__3;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_orList___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_orList___closed__4;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_orList___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(", or ", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_orList___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_orList___closed__6;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_orList___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_orList___closed__7;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_orList(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; 
x_2 = l_Lean_MessageData_orList___closed__2;
return x_2;
}
else
{
lean_object* x_3; 
x_3 = lean_ctor_get(x_1, 1);
lean_inc(x_3);
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; 
x_4 = lean_ctor_get(x_1, 0);
lean_inc(x_4);
lean_dec_ref(x_1);
return x_4;
}
else
{
lean_object* x_5; 
x_5 = lean_ctor_get(x_3, 1);
if (lean_obj_tag(x_5) == 0)
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_1);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_7 = lean_ctor_get(x_1, 0);
x_8 = lean_ctor_get(x_1, 1);
lean_dec(x_8);
x_9 = !lean_is_exclusive(x_3);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_10 = lean_ctor_get(x_3, 0);
x_11 = lean_ctor_get(x_3, 1);
lean_dec(x_11);
x_12 = l_Lean_MessageData_orList___closed__5;
lean_ctor_set_tag(x_3, 7);
lean_ctor_set(x_3, 1, x_12);
lean_ctor_set(x_3, 0, x_7);
lean_ctor_set_tag(x_1, 7);
lean_ctor_set(x_1, 1, x_10);
lean_ctor_set(x_1, 0, x_3);
return x_1;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = l_Lean_MessageData_orList___closed__5;
x_15 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_15, 0, x_7);
lean_ctor_set(x_15, 1, x_14);
lean_ctor_set_tag(x_1, 7);
lean_ctor_set(x_1, 1, x_13);
lean_ctor_set(x_1, 0, x_15);
return x_1;
}
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_16 = lean_ctor_get(x_1, 0);
lean_inc(x_16);
lean_dec(x_1);
x_17 = lean_ctor_get(x_3, 0);
lean_inc(x_17);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 x_18 = x_3;
} else {
 lean_dec_ref(x_3);
 x_18 = lean_box(0);
}
x_19 = l_Lean_MessageData_orList___closed__5;
if (lean_is_scalar(x_18)) {
 x_20 = lean_alloc_ctor(7, 2, 0);
} else {
 x_20 = x_18;
 lean_ctor_set_tag(x_20, 7);
}
lean_ctor_set(x_20, 0, x_16);
lean_ctor_set(x_20, 1, x_19);
x_21 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_21, 0, x_20);
lean_ctor_set(x_21, 1, x_17);
return x_21;
}
}
else
{
uint8_t x_22; 
x_22 = !lean_is_exclusive(x_3);
if (x_22 == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; 
x_23 = lean_ctor_get(x_3, 1);
lean_dec(x_23);
x_24 = lean_ctor_get(x_3, 0);
lean_dec(x_24);
x_25 = l_Lean_instInhabitedMessageData_default;
lean_inc_ref(x_1);
x_26 = lean_array_mk(x_1);
x_27 = lean_array_pop(x_26);
x_28 = lean_array_to_list(x_27);
x_29 = l_Lean_MessageData_arrayExpr_toMessageData___closed__3;
x_30 = l_Lean_MessageData_joinSep(x_28, x_29);
x_31 = l_Lean_MessageData_orList___closed__8;
lean_ctor_set_tag(x_3, 7);
lean_ctor_set(x_3, 1, x_31);
lean_ctor_set(x_3, 0, x_30);
x_32 = l_List_getLast_x21___redArg(x_25, x_1);
x_33 = !lean_is_exclusive(x_1);
if (x_33 == 0)
{
lean_object* x_34; lean_object* x_35; 
x_34 = lean_ctor_get(x_1, 1);
lean_dec(x_34);
x_35 = lean_ctor_get(x_1, 0);
lean_dec(x_35);
lean_ctor_set_tag(x_1, 7);
lean_ctor_set(x_1, 1, x_32);
lean_ctor_set(x_1, 0, x_3);
return x_1;
}
else
{
lean_object* x_36; 
lean_dec(x_1);
x_36 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_36, 0, x_3);
lean_ctor_set(x_36, 1, x_32);
return x_36;
}
}
else
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; 
lean_dec(x_3);
x_37 = l_Lean_instInhabitedMessageData_default;
lean_inc_ref(x_1);
x_38 = lean_array_mk(x_1);
x_39 = lean_array_pop(x_38);
x_40 = lean_array_to_list(x_39);
x_41 = l_Lean_MessageData_arrayExpr_toMessageData___closed__3;
x_42 = l_Lean_MessageData_joinSep(x_40, x_41);
x_43 = l_Lean_MessageData_orList___closed__8;
x_44 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_44, 0, x_42);
lean_ctor_set(x_44, 1, x_43);
x_45 = l_List_getLast_x21___redArg(x_37, x_1);
if (lean_is_exclusive(x_1)) {
 lean_ctor_release(x_1, 0);
 lean_ctor_release(x_1, 1);
 x_46 = x_1;
} else {
 lean_dec_ref(x_1);
 x_46 = lean_box(0);
}
if (lean_is_scalar(x_46)) {
 x_47 = lean_alloc_ctor(7, 2, 0);
} else {
 x_47 = x_46;
 lean_ctor_set_tag(x_47, 7);
}
lean_ctor_set(x_47, 0, x_44);
lean_ctor_set(x_47, 1, x_45);
return x_47;
}
}
}
}
}
}
static lean_object* _init_l_Lean_MessageData_andList___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(" and ", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_andList___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_andList___closed__0;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_andList___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_andList___closed__1;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_andList___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(", and ", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_andList___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_andList___closed__3;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_andList___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_andList___closed__4;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_andList(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; 
x_2 = l_Lean_MessageData_orList___closed__2;
return x_2;
}
else
{
lean_object* x_3; 
x_3 = lean_ctor_get(x_1, 1);
lean_inc(x_3);
if (lean_obj_tag(x_3) == 0)
{
lean_object* x_4; 
x_4 = lean_ctor_get(x_1, 0);
lean_inc(x_4);
lean_dec_ref(x_1);
return x_4;
}
else
{
lean_object* x_5; 
x_5 = lean_ctor_get(x_3, 1);
if (lean_obj_tag(x_5) == 0)
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_1);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_7 = lean_ctor_get(x_1, 0);
x_8 = lean_ctor_get(x_1, 1);
lean_dec(x_8);
x_9 = !lean_is_exclusive(x_3);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_10 = lean_ctor_get(x_3, 0);
x_11 = lean_ctor_get(x_3, 1);
lean_dec(x_11);
x_12 = l_Lean_MessageData_andList___closed__2;
lean_ctor_set_tag(x_3, 7);
lean_ctor_set(x_3, 1, x_12);
lean_ctor_set(x_3, 0, x_7);
lean_ctor_set_tag(x_1, 7);
lean_ctor_set(x_1, 1, x_10);
lean_ctor_set(x_1, 0, x_3);
return x_1;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = l_Lean_MessageData_andList___closed__2;
x_15 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_15, 0, x_7);
lean_ctor_set(x_15, 1, x_14);
lean_ctor_set_tag(x_1, 7);
lean_ctor_set(x_1, 1, x_13);
lean_ctor_set(x_1, 0, x_15);
return x_1;
}
}
else
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_16 = lean_ctor_get(x_1, 0);
lean_inc(x_16);
lean_dec(x_1);
x_17 = lean_ctor_get(x_3, 0);
lean_inc(x_17);
if (lean_is_exclusive(x_3)) {
 lean_ctor_release(x_3, 0);
 lean_ctor_release(x_3, 1);
 x_18 = x_3;
} else {
 lean_dec_ref(x_3);
 x_18 = lean_box(0);
}
x_19 = l_Lean_MessageData_andList___closed__2;
if (lean_is_scalar(x_18)) {
 x_20 = lean_alloc_ctor(7, 2, 0);
} else {
 x_20 = x_18;
 lean_ctor_set_tag(x_20, 7);
}
lean_ctor_set(x_20, 0, x_16);
lean_ctor_set(x_20, 1, x_19);
x_21 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_21, 0, x_20);
lean_ctor_set(x_21, 1, x_17);
return x_21;
}
}
else
{
uint8_t x_22; 
x_22 = !lean_is_exclusive(x_3);
if (x_22 == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; 
x_23 = lean_ctor_get(x_3, 1);
lean_dec(x_23);
x_24 = lean_ctor_get(x_3, 0);
lean_dec(x_24);
x_25 = l_Lean_instInhabitedMessageData_default;
lean_inc_ref(x_1);
x_26 = lean_array_mk(x_1);
x_27 = lean_array_pop(x_26);
x_28 = lean_array_to_list(x_27);
x_29 = l_Lean_MessageData_arrayExpr_toMessageData___closed__3;
x_30 = l_Lean_MessageData_joinSep(x_28, x_29);
x_31 = l_Lean_MessageData_andList___closed__5;
lean_ctor_set_tag(x_3, 7);
lean_ctor_set(x_3, 1, x_31);
lean_ctor_set(x_3, 0, x_30);
x_32 = l_List_getLast_x21___redArg(x_25, x_1);
x_33 = !lean_is_exclusive(x_1);
if (x_33 == 0)
{
lean_object* x_34; lean_object* x_35; 
x_34 = lean_ctor_get(x_1, 1);
lean_dec(x_34);
x_35 = lean_ctor_get(x_1, 0);
lean_dec(x_35);
lean_ctor_set_tag(x_1, 7);
lean_ctor_set(x_1, 1, x_32);
lean_ctor_set(x_1, 0, x_3);
return x_1;
}
else
{
lean_object* x_36; 
lean_dec(x_1);
x_36 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_36, 0, x_3);
lean_ctor_set(x_36, 1, x_32);
return x_36;
}
}
else
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; 
lean_dec(x_3);
x_37 = l_Lean_instInhabitedMessageData_default;
lean_inc_ref(x_1);
x_38 = lean_array_mk(x_1);
x_39 = lean_array_pop(x_38);
x_40 = lean_array_to_list(x_39);
x_41 = l_Lean_MessageData_arrayExpr_toMessageData___closed__3;
x_42 = l_Lean_MessageData_joinSep(x_40, x_41);
x_43 = l_Lean_MessageData_andList___closed__5;
x_44 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_44, 0, x_42);
lean_ctor_set(x_44, 1, x_43);
x_45 = l_List_getLast_x21___redArg(x_37, x_1);
if (lean_is_exclusive(x_1)) {
 lean_ctor_release(x_1, 0);
 lean_ctor_release(x_1, 1);
 x_46 = x_1;
} else {
 lean_dec_ref(x_1);
 x_46 = lean_box(0);
}
if (lean_is_scalar(x_46)) {
 x_47 = lean_alloc_ctor(7, 2, 0);
} else {
 x_47 = x_46;
 lean_ctor_set_tag(x_47, 7);
}
lean_ctor_set(x_47, 0, x_44);
lean_ctor_set(x_47, 1, x_45);
return x_47;
}
}
}
}
}
}
static lean_object* _init_l_Lean_MessageData_note___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_ofList___closed__6;
x_2 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_2, 0, x_1);
lean_ctor_set(x_2, 1, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_note___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Note: ", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_note___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_note___closed__1;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_note___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_note___closed__2;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_note___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_MessageData_note___closed__3;
x_2 = l_Lean_MessageData_note___closed__0;
x_3 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_note(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_MessageData_note___closed__4;
x_3 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_MessageData_hint_x27___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Hint: ", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_hint_x27___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_hint_x27___closed__0;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_hint_x27___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_hint_x27___closed__1;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageData_hint_x27___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_MessageData_hint_x27___closed__2;
x_2 = l_Lean_MessageData_note___closed__0;
x_3 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_hint_x27(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_MessageData_hint_x27___closed__3;
x_3 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_MessageData_instCoeList___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_MessageData_ofList), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageData_instCoeList() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_MessageData_instCoeList___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_instCoeListExpr___lam__0(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_2 = l_Lean_MessageData_instCoeExpr___closed__0;
x_3 = lean_box(0);
x_4 = l_List_mapTR_loop___redArg(x_2, x_1, x_3);
x_5 = l_Lean_MessageData_ofList(x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_MessageData_instCoeListExpr() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_MessageData_instCoeListExpr___lam__0), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instInhabitedBaseMessage_default___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instInhabitedPosition_default;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_instInhabitedBaseMessage_default___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; uint8_t x_6; lean_object* x_7; 
x_2 = l_Lean_mkErrorStringWithPos___closed__2;
x_3 = l_Lean_instInhabitedBaseMessage_default___redArg___closed__0;
x_4 = lean_box(0);
x_5 = 0;
x_6 = 0;
x_7 = lean_alloc_ctor(0, 5, 3);
lean_ctor_set(x_7, 0, x_2);
lean_ctor_set(x_7, 1, x_3);
lean_ctor_set(x_7, 2, x_4);
lean_ctor_set(x_7, 3, x_2);
lean_ctor_set(x_7, 4, x_1);
lean_ctor_set_uint8(x_7, sizeof(void*)*5, x_5);
lean_ctor_set_uint8(x_7, sizeof(void*)*5 + 1, x_6);
lean_ctor_set_uint8(x_7, sizeof(void*)*5 + 2, x_5);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_instInhabitedBaseMessage_default(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_instInhabitedBaseMessage_default___redArg(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instInhabitedBaseMessage(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_instInhabitedBaseMessage_default___redArg(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instInhabitedBaseMessage___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_instInhabitedBaseMessage_default___redArg(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instToJsonBaseMessage_toJson___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_instToJsonPosition_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instToJsonBaseMessage_toJson___redArg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("fileName", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_instToJsonBaseMessage_toJson___redArg___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("pos", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lean_instToJsonBaseMessage_toJson___redArg___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("endPos", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_instToJsonBaseMessage_toJson___redArg___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("keepFullRange", 13, 13);
return x_1;
}
}
static lean_object* _init_l_Lean_instToJsonBaseMessage_toJson___redArg___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("severity", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_instToJsonBaseMessage_toJson___redArg___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("isSilent", 8, 8);
return x_1;
}
}
static lean_object* _init_l_Lean_instToJsonBaseMessage_toJson___redArg___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("caption", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_instToJsonBaseMessage_toJson___redArg___closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("data", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_instToJsonBaseMessage_toJson___redArg___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_id___boxed), 2, 1);
lean_closure_set(x_1, 0, lean_box(0));
return x_1;
}
}
static lean_object* _init_l_Lean_instToJsonBaseMessage_toJson___redArg___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_instToJsonBaseMessage_toJson___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; uint8_t x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; 
x_3 = lean_ctor_get(x_2, 0);
lean_inc_ref(x_3);
x_4 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_2, 2);
lean_inc(x_5);
x_6 = lean_ctor_get_uint8(x_2, sizeof(void*)*5);
x_7 = lean_ctor_get_uint8(x_2, sizeof(void*)*5 + 1);
x_8 = lean_ctor_get_uint8(x_2, sizeof(void*)*5 + 2);
x_9 = lean_ctor_get(x_2, 3);
lean_inc_ref(x_9);
x_10 = lean_ctor_get(x_2, 4);
lean_inc(x_10);
lean_dec_ref(x_2);
x_11 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__0;
x_12 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__1;
x_13 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_13, 0, x_3);
x_14 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_14, 0, x_12);
lean_ctor_set(x_14, 1, x_13);
x_15 = lean_box(0);
x_16 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_16, 0, x_14);
lean_ctor_set(x_16, 1, x_15);
x_17 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__2;
x_18 = l_Lean_instToJsonPosition_toJson(x_4);
x_19 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_19, 0, x_17);
lean_ctor_set(x_19, 1, x_18);
x_20 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_20, 0, x_19);
lean_ctor_set(x_20, 1, x_15);
x_21 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__3;
x_22 = l_Option_toJson___redArg(x_11, x_5);
x_23 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_23, 0, x_21);
lean_ctor_set(x_23, 1, x_22);
x_24 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_24, 0, x_23);
lean_ctor_set(x_24, 1, x_15);
x_25 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__4;
x_26 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_26, 0, x_6);
x_27 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_27, 0, x_25);
lean_ctor_set(x_27, 1, x_26);
x_28 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_28, 0, x_27);
lean_ctor_set(x_28, 1, x_15);
x_29 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__5;
x_30 = l_Lean_instToJsonMessageSeverity_toJson(x_7);
x_31 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_31, 0, x_29);
lean_ctor_set(x_31, 1, x_30);
x_32 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_32, 0, x_31);
lean_ctor_set(x_32, 1, x_15);
x_33 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__6;
x_34 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_34, 0, x_8);
x_35 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_35, 0, x_33);
lean_ctor_set(x_35, 1, x_34);
x_36 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_36, 0, x_35);
lean_ctor_set(x_36, 1, x_15);
x_37 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__7;
x_38 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_38, 0, x_9);
x_39 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_39, 0, x_37);
lean_ctor_set(x_39, 1, x_38);
x_40 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_40, 0, x_39);
lean_ctor_set(x_40, 1, x_15);
x_41 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__8;
x_42 = lean_apply_1(x_1, x_10);
x_43 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_43, 0, x_41);
lean_ctor_set(x_43, 1, x_42);
x_44 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_44, 0, x_43);
lean_ctor_set(x_44, 1, x_15);
x_45 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_45, 0, x_44);
lean_ctor_set(x_45, 1, x_15);
x_46 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_46, 0, x_40);
lean_ctor_set(x_46, 1, x_45);
x_47 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_47, 0, x_36);
lean_ctor_set(x_47, 1, x_46);
x_48 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_48, 0, x_32);
lean_ctor_set(x_48, 1, x_47);
x_49 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_49, 0, x_28);
lean_ctor_set(x_49, 1, x_48);
x_50 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_50, 0, x_24);
lean_ctor_set(x_50, 1, x_49);
x_51 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_51, 0, x_20);
lean_ctor_set(x_51, 1, x_50);
x_52 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_52, 0, x_16);
lean_ctor_set(x_52, 1, x_51);
x_53 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__9;
x_54 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__10;
x_55 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go(lean_box(0), lean_box(0), x_53, x_52, x_54);
x_56 = l_Lean_Json_mkObj(x_55);
return x_56;
}
}
LEAN_EXPORT lean_object* l_Lean_instToJsonBaseMessage_toJson(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_instToJsonBaseMessage_toJson___redArg(x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_instToJsonBaseMessage(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Lean_instToJsonBaseMessage_toJson), 3, 2);
lean_closure_set(x_3, 0, lean_box(0));
lean_closure_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instToJsonBaseMessage___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_instToJsonBaseMessage_toJson), 3, 2);
lean_closure_set(x_2, 0, lean_box(0));
lean_closure_set(x_2, 1, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Json_getStr_x3f), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(": ", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__1;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__7() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__6;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(".", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("BaseMessage", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__1;
x_2 = l_Lean_instImpl___closed__0_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__3() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__2;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__4;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__7;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__5;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__9;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__8;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_instFromJsonPosition_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__2;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__13() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__12;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__13;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__5;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__9;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__14;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__11;
x_2 = lean_alloc_closure((void*)(l_Option_fromJson_x3f), 3, 2);
lean_closure_set(x_2, 0, lean_box(0));
lean_closure_set(x_2, 1, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__3;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__18() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__17;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__19() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__18;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__5;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__20() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__9;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__19;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__21() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_Json_getBool_x3f___boxed), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__22() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__4;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__23() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__22;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__24() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__23;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__5;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__25() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__9;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__24;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__26() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__5;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__27() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__26;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__28() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__27;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__5;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__29() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__9;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__28;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__30() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__6;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__31() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__30;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__32() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__31;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__5;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__33() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__9;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__32;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__34() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__7;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__35() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__34;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__36() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__35;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__5;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__37() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__9;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__36;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__38() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__8;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__39() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__38;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__40() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__39;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__5;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__41() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__9;
x_2 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__40;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instFromJsonBaseMessage_fromJson___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__0;
x_4 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__1;
lean_inc(x_2);
x_5 = l_Lean_Json_getObjValAs_x3f___redArg(x_2, x_3, x_4);
if (lean_obj_tag(x_5) == 0)
{
uint8_t x_6; 
lean_dec(x_2);
lean_dec_ref(x_1);
x_6 = !lean_is_exclusive(x_5);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_7 = lean_ctor_get(x_5, 0);
x_8 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__10;
x_9 = lean_string_append(x_8, x_7);
lean_dec(x_7);
lean_ctor_set(x_5, 0, x_9);
return x_5;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_10 = lean_ctor_get(x_5, 0);
lean_inc(x_10);
lean_dec(x_5);
x_11 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__10;
x_12 = lean_string_append(x_11, x_10);
lean_dec(x_10);
x_13 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_13, 0, x_12);
return x_13;
}
}
else
{
if (lean_obj_tag(x_5) == 0)
{
uint8_t x_14; 
lean_dec(x_2);
lean_dec_ref(x_1);
x_14 = !lean_is_exclusive(x_5);
if (x_14 == 0)
{
lean_ctor_set_tag(x_5, 0);
return x_5;
}
else
{
lean_object* x_15; lean_object* x_16; 
x_15 = lean_ctor_get(x_5, 0);
lean_inc(x_15);
lean_dec(x_5);
x_16 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_16, 0, x_15);
return x_16;
}
}
else
{
lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_17 = lean_ctor_get(x_5, 0);
lean_inc(x_17);
lean_dec_ref(x_5);
x_18 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__11;
x_19 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__2;
lean_inc(x_2);
x_20 = l_Lean_Json_getObjValAs_x3f___redArg(x_2, x_18, x_19);
if (lean_obj_tag(x_20) == 0)
{
uint8_t x_21; 
lean_dec(x_17);
lean_dec(x_2);
lean_dec_ref(x_1);
x_21 = !lean_is_exclusive(x_20);
if (x_21 == 0)
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; 
x_22 = lean_ctor_get(x_20, 0);
x_23 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__15;
x_24 = lean_string_append(x_23, x_22);
lean_dec(x_22);
lean_ctor_set(x_20, 0, x_24);
return x_20;
}
else
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; 
x_25 = lean_ctor_get(x_20, 0);
lean_inc(x_25);
lean_dec(x_20);
x_26 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__15;
x_27 = lean_string_append(x_26, x_25);
lean_dec(x_25);
x_28 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_28, 0, x_27);
return x_28;
}
}
else
{
if (lean_obj_tag(x_20) == 0)
{
uint8_t x_29; 
lean_dec(x_17);
lean_dec(x_2);
lean_dec_ref(x_1);
x_29 = !lean_is_exclusive(x_20);
if (x_29 == 0)
{
lean_ctor_set_tag(x_20, 0);
return x_20;
}
else
{
lean_object* x_30; lean_object* x_31; 
x_30 = lean_ctor_get(x_20, 0);
lean_inc(x_30);
lean_dec(x_20);
x_31 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_31, 0, x_30);
return x_31;
}
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_32 = lean_ctor_get(x_20, 0);
lean_inc(x_32);
lean_dec_ref(x_20);
x_33 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__16;
x_34 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__3;
lean_inc(x_2);
x_35 = l_Lean_Json_getObjValAs_x3f___redArg(x_2, x_33, x_34);
if (lean_obj_tag(x_35) == 0)
{
uint8_t x_36; 
lean_dec(x_32);
lean_dec(x_17);
lean_dec(x_2);
lean_dec_ref(x_1);
x_36 = !lean_is_exclusive(x_35);
if (x_36 == 0)
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; 
x_37 = lean_ctor_get(x_35, 0);
x_38 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__20;
x_39 = lean_string_append(x_38, x_37);
lean_dec(x_37);
lean_ctor_set(x_35, 0, x_39);
return x_35;
}
else
{
lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; 
x_40 = lean_ctor_get(x_35, 0);
lean_inc(x_40);
lean_dec(x_35);
x_41 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__20;
x_42 = lean_string_append(x_41, x_40);
lean_dec(x_40);
x_43 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_43, 0, x_42);
return x_43;
}
}
else
{
if (lean_obj_tag(x_35) == 0)
{
uint8_t x_44; 
lean_dec(x_32);
lean_dec(x_17);
lean_dec(x_2);
lean_dec_ref(x_1);
x_44 = !lean_is_exclusive(x_35);
if (x_44 == 0)
{
lean_ctor_set_tag(x_35, 0);
return x_35;
}
else
{
lean_object* x_45; lean_object* x_46; 
x_45 = lean_ctor_get(x_35, 0);
lean_inc(x_45);
lean_dec(x_35);
x_46 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_46, 0, x_45);
return x_46;
}
}
else
{
lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; 
x_47 = lean_ctor_get(x_35, 0);
lean_inc(x_47);
lean_dec_ref(x_35);
x_48 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__21;
x_49 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__4;
lean_inc(x_2);
x_50 = l_Lean_Json_getObjValAs_x3f___redArg(x_2, x_48, x_49);
if (lean_obj_tag(x_50) == 0)
{
uint8_t x_51; 
lean_dec(x_47);
lean_dec(x_32);
lean_dec(x_17);
lean_dec(x_2);
lean_dec_ref(x_1);
x_51 = !lean_is_exclusive(x_50);
if (x_51 == 0)
{
lean_object* x_52; lean_object* x_53; lean_object* x_54; 
x_52 = lean_ctor_get(x_50, 0);
x_53 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__25;
x_54 = lean_string_append(x_53, x_52);
lean_dec(x_52);
lean_ctor_set(x_50, 0, x_54);
return x_50;
}
else
{
lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; 
x_55 = lean_ctor_get(x_50, 0);
lean_inc(x_55);
lean_dec(x_50);
x_56 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__25;
x_57 = lean_string_append(x_56, x_55);
lean_dec(x_55);
x_58 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_58, 0, x_57);
return x_58;
}
}
else
{
if (lean_obj_tag(x_50) == 0)
{
uint8_t x_59; 
lean_dec(x_47);
lean_dec(x_32);
lean_dec(x_17);
lean_dec(x_2);
lean_dec_ref(x_1);
x_59 = !lean_is_exclusive(x_50);
if (x_59 == 0)
{
lean_ctor_set_tag(x_50, 0);
return x_50;
}
else
{
lean_object* x_60; lean_object* x_61; 
x_60 = lean_ctor_get(x_50, 0);
lean_inc(x_60);
lean_dec(x_50);
x_61 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_61, 0, x_60);
return x_61;
}
}
else
{
lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; 
x_62 = lean_ctor_get(x_50, 0);
lean_inc(x_62);
lean_dec_ref(x_50);
x_63 = l_Lean_instFromJsonMessageSeverity___closed__0;
x_64 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__5;
lean_inc(x_2);
x_65 = l_Lean_Json_getObjValAs_x3f___redArg(x_2, x_63, x_64);
if (lean_obj_tag(x_65) == 0)
{
uint8_t x_66; 
lean_dec(x_62);
lean_dec(x_47);
lean_dec(x_32);
lean_dec(x_17);
lean_dec(x_2);
lean_dec_ref(x_1);
x_66 = !lean_is_exclusive(x_65);
if (x_66 == 0)
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; 
x_67 = lean_ctor_get(x_65, 0);
x_68 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__29;
x_69 = lean_string_append(x_68, x_67);
lean_dec(x_67);
lean_ctor_set(x_65, 0, x_69);
return x_65;
}
else
{
lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; 
x_70 = lean_ctor_get(x_65, 0);
lean_inc(x_70);
lean_dec(x_65);
x_71 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__29;
x_72 = lean_string_append(x_71, x_70);
lean_dec(x_70);
x_73 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_73, 0, x_72);
return x_73;
}
}
else
{
if (lean_obj_tag(x_65) == 0)
{
uint8_t x_74; 
lean_dec(x_62);
lean_dec(x_47);
lean_dec(x_32);
lean_dec(x_17);
lean_dec(x_2);
lean_dec_ref(x_1);
x_74 = !lean_is_exclusive(x_65);
if (x_74 == 0)
{
lean_ctor_set_tag(x_65, 0);
return x_65;
}
else
{
lean_object* x_75; lean_object* x_76; 
x_75 = lean_ctor_get(x_65, 0);
lean_inc(x_75);
lean_dec(x_65);
x_76 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_76, 0, x_75);
return x_76;
}
}
else
{
lean_object* x_77; lean_object* x_78; lean_object* x_79; 
x_77 = lean_ctor_get(x_65, 0);
lean_inc(x_77);
lean_dec_ref(x_65);
x_78 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__6;
lean_inc(x_2);
x_79 = l_Lean_Json_getObjValAs_x3f___redArg(x_2, x_48, x_78);
if (lean_obj_tag(x_79) == 0)
{
uint8_t x_80; 
lean_dec(x_77);
lean_dec(x_62);
lean_dec(x_47);
lean_dec(x_32);
lean_dec(x_17);
lean_dec(x_2);
lean_dec_ref(x_1);
x_80 = !lean_is_exclusive(x_79);
if (x_80 == 0)
{
lean_object* x_81; lean_object* x_82; lean_object* x_83; 
x_81 = lean_ctor_get(x_79, 0);
x_82 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__33;
x_83 = lean_string_append(x_82, x_81);
lean_dec(x_81);
lean_ctor_set(x_79, 0, x_83);
return x_79;
}
else
{
lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; 
x_84 = lean_ctor_get(x_79, 0);
lean_inc(x_84);
lean_dec(x_79);
x_85 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__33;
x_86 = lean_string_append(x_85, x_84);
lean_dec(x_84);
x_87 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_87, 0, x_86);
return x_87;
}
}
else
{
if (lean_obj_tag(x_79) == 0)
{
uint8_t x_88; 
lean_dec(x_77);
lean_dec(x_62);
lean_dec(x_47);
lean_dec(x_32);
lean_dec(x_17);
lean_dec(x_2);
lean_dec_ref(x_1);
x_88 = !lean_is_exclusive(x_79);
if (x_88 == 0)
{
lean_ctor_set_tag(x_79, 0);
return x_79;
}
else
{
lean_object* x_89; lean_object* x_90; 
x_89 = lean_ctor_get(x_79, 0);
lean_inc(x_89);
lean_dec(x_79);
x_90 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_90, 0, x_89);
return x_90;
}
}
else
{
lean_object* x_91; lean_object* x_92; lean_object* x_93; 
x_91 = lean_ctor_get(x_79, 0);
lean_inc(x_91);
lean_dec_ref(x_79);
x_92 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__7;
lean_inc(x_2);
x_93 = l_Lean_Json_getObjValAs_x3f___redArg(x_2, x_3, x_92);
if (lean_obj_tag(x_93) == 0)
{
uint8_t x_94; 
lean_dec(x_91);
lean_dec(x_77);
lean_dec(x_62);
lean_dec(x_47);
lean_dec(x_32);
lean_dec(x_17);
lean_dec(x_2);
lean_dec_ref(x_1);
x_94 = !lean_is_exclusive(x_93);
if (x_94 == 0)
{
lean_object* x_95; lean_object* x_96; lean_object* x_97; 
x_95 = lean_ctor_get(x_93, 0);
x_96 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__37;
x_97 = lean_string_append(x_96, x_95);
lean_dec(x_95);
lean_ctor_set(x_93, 0, x_97);
return x_93;
}
else
{
lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; 
x_98 = lean_ctor_get(x_93, 0);
lean_inc(x_98);
lean_dec(x_93);
x_99 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__37;
x_100 = lean_string_append(x_99, x_98);
lean_dec(x_98);
x_101 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_101, 0, x_100);
return x_101;
}
}
else
{
if (lean_obj_tag(x_93) == 0)
{
uint8_t x_102; 
lean_dec(x_91);
lean_dec(x_77);
lean_dec(x_62);
lean_dec(x_47);
lean_dec(x_32);
lean_dec(x_17);
lean_dec(x_2);
lean_dec_ref(x_1);
x_102 = !lean_is_exclusive(x_93);
if (x_102 == 0)
{
lean_ctor_set_tag(x_93, 0);
return x_93;
}
else
{
lean_object* x_103; lean_object* x_104; 
x_103 = lean_ctor_get(x_93, 0);
lean_inc(x_103);
lean_dec(x_93);
x_104 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_104, 0, x_103);
return x_104;
}
}
else
{
lean_object* x_105; lean_object* x_106; lean_object* x_107; 
x_105 = lean_ctor_get(x_93, 0);
lean_inc(x_105);
lean_dec_ref(x_93);
x_106 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__8;
x_107 = l_Lean_Json_getObjValAs_x3f___redArg(x_2, x_1, x_106);
if (lean_obj_tag(x_107) == 0)
{
uint8_t x_108; 
lean_dec(x_105);
lean_dec(x_91);
lean_dec(x_77);
lean_dec(x_62);
lean_dec(x_47);
lean_dec(x_32);
lean_dec(x_17);
x_108 = !lean_is_exclusive(x_107);
if (x_108 == 0)
{
lean_object* x_109; lean_object* x_110; lean_object* x_111; 
x_109 = lean_ctor_get(x_107, 0);
x_110 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__41;
x_111 = lean_string_append(x_110, x_109);
lean_dec(x_109);
lean_ctor_set(x_107, 0, x_111);
return x_107;
}
else
{
lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; 
x_112 = lean_ctor_get(x_107, 0);
lean_inc(x_112);
lean_dec(x_107);
x_113 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__41;
x_114 = lean_string_append(x_113, x_112);
lean_dec(x_112);
x_115 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_115, 0, x_114);
return x_115;
}
}
else
{
if (lean_obj_tag(x_107) == 0)
{
uint8_t x_116; 
lean_dec(x_105);
lean_dec(x_91);
lean_dec(x_77);
lean_dec(x_62);
lean_dec(x_47);
lean_dec(x_32);
lean_dec(x_17);
x_116 = !lean_is_exclusive(x_107);
if (x_116 == 0)
{
lean_ctor_set_tag(x_107, 0);
return x_107;
}
else
{
lean_object* x_117; lean_object* x_118; 
x_117 = lean_ctor_get(x_107, 0);
lean_inc(x_117);
lean_dec(x_107);
x_118 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_118, 0, x_117);
return x_118;
}
}
else
{
uint8_t x_119; 
x_119 = !lean_is_exclusive(x_107);
if (x_119 == 0)
{
lean_object* x_120; lean_object* x_121; uint8_t x_122; uint8_t x_123; uint8_t x_124; 
x_120 = lean_ctor_get(x_107, 0);
x_121 = lean_alloc_ctor(0, 5, 3);
lean_ctor_set(x_121, 0, x_17);
lean_ctor_set(x_121, 1, x_32);
lean_ctor_set(x_121, 2, x_47);
lean_ctor_set(x_121, 3, x_105);
lean_ctor_set(x_121, 4, x_120);
x_122 = lean_unbox(x_62);
lean_dec(x_62);
lean_ctor_set_uint8(x_121, sizeof(void*)*5, x_122);
x_123 = lean_unbox(x_77);
lean_dec(x_77);
lean_ctor_set_uint8(x_121, sizeof(void*)*5 + 1, x_123);
x_124 = lean_unbox(x_91);
lean_dec(x_91);
lean_ctor_set_uint8(x_121, sizeof(void*)*5 + 2, x_124);
lean_ctor_set(x_107, 0, x_121);
return x_107;
}
else
{
lean_object* x_125; lean_object* x_126; uint8_t x_127; uint8_t x_128; uint8_t x_129; lean_object* x_130; 
x_125 = lean_ctor_get(x_107, 0);
lean_inc(x_125);
lean_dec(x_107);
x_126 = lean_alloc_ctor(0, 5, 3);
lean_ctor_set(x_126, 0, x_17);
lean_ctor_set(x_126, 1, x_32);
lean_ctor_set(x_126, 2, x_47);
lean_ctor_set(x_126, 3, x_105);
lean_ctor_set(x_126, 4, x_125);
x_127 = lean_unbox(x_62);
lean_dec(x_62);
lean_ctor_set_uint8(x_126, sizeof(void*)*5, x_127);
x_128 = lean_unbox(x_77);
lean_dec(x_77);
lean_ctor_set_uint8(x_126, sizeof(void*)*5 + 1, x_128);
x_129 = lean_unbox(x_91);
lean_dec(x_91);
lean_ctor_set_uint8(x_126, sizeof(void*)*5 + 2, x_129);
x_130 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_130, 0, x_126);
return x_130;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_instFromJsonBaseMessage_fromJson(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_instFromJsonBaseMessage_fromJson___redArg(x_2, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_instFromJsonBaseMessage(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Lean_instFromJsonBaseMessage_fromJson), 3, 2);
lean_closure_set(x_3, 0, lean_box(0));
lean_closure_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instFromJsonBaseMessage___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_instFromJsonBaseMessage_fromJson), 3, 2);
lean_closure_set(x_2, 0, lean_box(0));
lean_closure_set(x_2, 1, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Option_toJson___at___00Lean_instToJsonSerialMessage_toJson_spec__0(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; 
x_2 = lean_box(0);
return x_2;
}
else
{
lean_object* x_3; lean_object* x_4; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc(x_3);
lean_dec_ref(x_1);
x_4 = l_Lean_instToJsonPosition_toJson(x_3);
return x_4;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_instToJsonSerialMessage_toJson_spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_3; 
x_3 = lean_array_to_list(x_2);
return x_3;
}
else
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_4 = lean_ctor_get(x_1, 0);
lean_inc(x_4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = l_List_foldl___at___00Array_appendList_spec__0___redArg(x_2, x_4);
x_1 = x_5;
x_2 = x_6;
goto _start;
}
}
}
static lean_object* _init_l_Lean_instToJsonSerialMessage_toJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("kind", 4, 4);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_instToJsonSerialMessage_toJson(lean_object* x_1) {
_start:
{
uint8_t x_2; 
x_2 = !lean_is_exclusive(x_1);
if (x_2 == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; uint8_t x_8; uint8_t x_9; uint8_t x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint8_t x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_ctor_get(x_1, 1);
x_5 = lean_ctor_get(x_3, 0);
lean_inc_ref(x_5);
x_6 = lean_ctor_get(x_3, 1);
lean_inc_ref(x_6);
x_7 = lean_ctor_get(x_3, 2);
lean_inc(x_7);
x_8 = lean_ctor_get_uint8(x_3, sizeof(void*)*5);
x_9 = lean_ctor_get_uint8(x_3, sizeof(void*)*5 + 1);
x_10 = lean_ctor_get_uint8(x_3, sizeof(void*)*5 + 2);
x_11 = lean_ctor_get(x_3, 3);
lean_inc_ref(x_11);
x_12 = lean_ctor_get(x_3, 4);
lean_inc(x_12);
lean_dec_ref(x_3);
x_13 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__1;
x_14 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_14, 0, x_5);
lean_ctor_set(x_1, 1, x_14);
lean_ctor_set(x_1, 0, x_13);
x_15 = lean_box(0);
x_16 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_16, 0, x_1);
lean_ctor_set(x_16, 1, x_15);
x_17 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__2;
x_18 = l_Lean_instToJsonPosition_toJson(x_6);
x_19 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_19, 0, x_17);
lean_ctor_set(x_19, 1, x_18);
x_20 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_20, 0, x_19);
lean_ctor_set(x_20, 1, x_15);
x_21 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__3;
x_22 = l_Option_toJson___at___00Lean_instToJsonSerialMessage_toJson_spec__0(x_7);
x_23 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_23, 0, x_21);
lean_ctor_set(x_23, 1, x_22);
x_24 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_24, 0, x_23);
lean_ctor_set(x_24, 1, x_15);
x_25 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__4;
x_26 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_26, 0, x_8);
x_27 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_27, 0, x_25);
lean_ctor_set(x_27, 1, x_26);
x_28 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_28, 0, x_27);
lean_ctor_set(x_28, 1, x_15);
x_29 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__5;
x_30 = l_Lean_instToJsonMessageSeverity_toJson(x_9);
x_31 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_31, 0, x_29);
lean_ctor_set(x_31, 1, x_30);
x_32 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_32, 0, x_31);
lean_ctor_set(x_32, 1, x_15);
x_33 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__6;
x_34 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_34, 0, x_10);
x_35 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_35, 0, x_33);
lean_ctor_set(x_35, 1, x_34);
x_36 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_36, 0, x_35);
lean_ctor_set(x_36, 1, x_15);
x_37 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__7;
x_38 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_38, 0, x_11);
x_39 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_39, 0, x_37);
lean_ctor_set(x_39, 1, x_38);
x_40 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_40, 0, x_39);
lean_ctor_set(x_40, 1, x_15);
x_41 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__8;
x_42 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_42, 0, x_12);
x_43 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_43, 0, x_41);
lean_ctor_set(x_43, 1, x_42);
x_44 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_44, 0, x_43);
lean_ctor_set(x_44, 1, x_15);
x_45 = l_Lean_instToJsonSerialMessage_toJson___closed__0;
x_46 = 1;
x_47 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_4, x_46);
x_48 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_48, 0, x_47);
x_49 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_49, 0, x_45);
lean_ctor_set(x_49, 1, x_48);
x_50 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_50, 0, x_49);
lean_ctor_set(x_50, 1, x_15);
x_51 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_51, 0, x_50);
lean_ctor_set(x_51, 1, x_15);
x_52 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_52, 0, x_44);
lean_ctor_set(x_52, 1, x_51);
x_53 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_53, 0, x_40);
lean_ctor_set(x_53, 1, x_52);
x_54 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_54, 0, x_36);
lean_ctor_set(x_54, 1, x_53);
x_55 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_55, 0, x_32);
lean_ctor_set(x_55, 1, x_54);
x_56 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_56, 0, x_28);
lean_ctor_set(x_56, 1, x_55);
x_57 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_57, 0, x_24);
lean_ctor_set(x_57, 1, x_56);
x_58 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_58, 0, x_20);
lean_ctor_set(x_58, 1, x_57);
x_59 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_59, 0, x_16);
lean_ctor_set(x_59, 1, x_58);
x_60 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__10;
x_61 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_instToJsonSerialMessage_toJson_spec__1(x_59, x_60);
x_62 = l_Lean_Json_mkObj(x_61);
return x_62;
}
else
{
lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; uint8_t x_68; uint8_t x_69; uint8_t x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; uint8_t x_107; lean_object* x_108; lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; 
x_63 = lean_ctor_get(x_1, 0);
x_64 = lean_ctor_get(x_1, 1);
lean_inc(x_64);
lean_inc(x_63);
lean_dec(x_1);
x_65 = lean_ctor_get(x_63, 0);
lean_inc_ref(x_65);
x_66 = lean_ctor_get(x_63, 1);
lean_inc_ref(x_66);
x_67 = lean_ctor_get(x_63, 2);
lean_inc(x_67);
x_68 = lean_ctor_get_uint8(x_63, sizeof(void*)*5);
x_69 = lean_ctor_get_uint8(x_63, sizeof(void*)*5 + 1);
x_70 = lean_ctor_get_uint8(x_63, sizeof(void*)*5 + 2);
x_71 = lean_ctor_get(x_63, 3);
lean_inc_ref(x_71);
x_72 = lean_ctor_get(x_63, 4);
lean_inc(x_72);
lean_dec_ref(x_63);
x_73 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__1;
x_74 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_74, 0, x_65);
x_75 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_75, 0, x_73);
lean_ctor_set(x_75, 1, x_74);
x_76 = lean_box(0);
x_77 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_77, 0, x_75);
lean_ctor_set(x_77, 1, x_76);
x_78 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__2;
x_79 = l_Lean_instToJsonPosition_toJson(x_66);
x_80 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_80, 0, x_78);
lean_ctor_set(x_80, 1, x_79);
x_81 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_81, 0, x_80);
lean_ctor_set(x_81, 1, x_76);
x_82 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__3;
x_83 = l_Option_toJson___at___00Lean_instToJsonSerialMessage_toJson_spec__0(x_67);
x_84 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_84, 0, x_82);
lean_ctor_set(x_84, 1, x_83);
x_85 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_85, 0, x_84);
lean_ctor_set(x_85, 1, x_76);
x_86 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__4;
x_87 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_87, 0, x_68);
x_88 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_88, 0, x_86);
lean_ctor_set(x_88, 1, x_87);
x_89 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_89, 0, x_88);
lean_ctor_set(x_89, 1, x_76);
x_90 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__5;
x_91 = l_Lean_instToJsonMessageSeverity_toJson(x_69);
x_92 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_92, 0, x_90);
lean_ctor_set(x_92, 1, x_91);
x_93 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_93, 0, x_92);
lean_ctor_set(x_93, 1, x_76);
x_94 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__6;
x_95 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_95, 0, x_70);
x_96 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_96, 0, x_94);
lean_ctor_set(x_96, 1, x_95);
x_97 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_97, 0, x_96);
lean_ctor_set(x_97, 1, x_76);
x_98 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__7;
x_99 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_99, 0, x_71);
x_100 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_100, 0, x_98);
lean_ctor_set(x_100, 1, x_99);
x_101 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_101, 0, x_100);
lean_ctor_set(x_101, 1, x_76);
x_102 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__8;
x_103 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_103, 0, x_72);
x_104 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_104, 0, x_102);
lean_ctor_set(x_104, 1, x_103);
x_105 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_105, 0, x_104);
lean_ctor_set(x_105, 1, x_76);
x_106 = l_Lean_instToJsonSerialMessage_toJson___closed__0;
x_107 = 1;
x_108 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_64, x_107);
x_109 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_109, 0, x_108);
x_110 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_110, 0, x_106);
lean_ctor_set(x_110, 1, x_109);
x_111 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_111, 0, x_110);
lean_ctor_set(x_111, 1, x_76);
x_112 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_112, 0, x_111);
lean_ctor_set(x_112, 1, x_76);
x_113 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_113, 0, x_105);
lean_ctor_set(x_113, 1, x_112);
x_114 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_114, 0, x_101);
lean_ctor_set(x_114, 1, x_113);
x_115 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_115, 0, x_97);
lean_ctor_set(x_115, 1, x_114);
x_116 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_116, 0, x_93);
lean_ctor_set(x_116, 1, x_115);
x_117 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_117, 0, x_89);
lean_ctor_set(x_117, 1, x_116);
x_118 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_118, 0, x_85);
lean_ctor_set(x_118, 1, x_117);
x_119 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_119, 0, x_81);
lean_ctor_set(x_119, 1, x_118);
x_120 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_120, 0, x_77);
lean_ctor_set(x_120, 1, x_119);
x_121 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__10;
x_122 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_instToJsonSerialMessage_toJson_spec__1(x_120, x_121);
x_123 = l_Lean_Json_mkObj(x_122);
return x_123;
}
}
}
static lean_object* _init_l_Lean_instToJsonSerialMessage___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_instToJsonSerialMessage_toJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instToJsonSerialMessage() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instToJsonSerialMessage___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Lean_Json_getStr_x3f(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Lean_instFromJsonPosition_fromJson(x_3);
return x_4;
}
}
static lean_object* _init_l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__2_spec__2___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__2_spec__2(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; 
x_2 = l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__2_spec__2___closed__0;
return x_2;
}
else
{
lean_object* x_3; 
x_3 = l_Lean_instFromJsonPosition_fromJson(x_1);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; 
x_5 = lean_ctor_get(x_3, 0);
lean_inc(x_5);
lean_dec(x_3);
x_6 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_6, 0, x_5);
return x_6;
}
}
else
{
uint8_t x_7; 
x_7 = !lean_is_exclusive(x_3);
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_ctor_get(x_3, 0);
x_9 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set(x_3, 0, x_9);
return x_3;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_10 = lean_ctor_get(x_3, 0);
lean_inc(x_10);
lean_dec(x_3);
x_11 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_11, 0, x_10);
x_12 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_12, 0, x_11);
return x_12;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__2_spec__2(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__4(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Lean_Json_getBool_x3f(x_3);
lean_dec(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__5(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Lean_instFromJsonMessageSeverity_fromJson(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__6(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_Json_getObjValD(x_1, x_2);
x_4 = l_Lean_Name_fromJson_x3f(x_3);
return x_4;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("SerialMessage", 13, 13);
return x_1;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonSerialMessage_fromJson___closed__0;
x_2 = l_Lean_instImpl___closed__0_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__2() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_instFromJsonSerialMessage_fromJson___closed__1;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__4;
x_2 = l_Lean_instFromJsonSerialMessage_fromJson___closed__2;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__7;
x_2 = l_Lean_instFromJsonSerialMessage_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__9;
x_2 = l_Lean_instFromJsonSerialMessage_fromJson___closed__4;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__13;
x_2 = l_Lean_instFromJsonSerialMessage_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__9;
x_2 = l_Lean_instFromJsonSerialMessage_fromJson___closed__6;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__18;
x_2 = l_Lean_instFromJsonSerialMessage_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__9;
x_2 = l_Lean_instFromJsonSerialMessage_fromJson___closed__8;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__23;
x_2 = l_Lean_instFromJsonSerialMessage_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__9;
x_2 = l_Lean_instFromJsonSerialMessage_fromJson___closed__10;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__27;
x_2 = l_Lean_instFromJsonSerialMessage_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__9;
x_2 = l_Lean_instFromJsonSerialMessage_fromJson___closed__12;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__14() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__31;
x_2 = l_Lean_instFromJsonSerialMessage_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__9;
x_2 = l_Lean_instFromJsonSerialMessage_fromJson___closed__14;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__16() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__35;
x_2 = l_Lean_instFromJsonSerialMessage_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__9;
x_2 = l_Lean_instFromJsonSerialMessage_fromJson___closed__16;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__18() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__39;
x_2 = l_Lean_instFromJsonSerialMessage_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__19() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__9;
x_2 = l_Lean_instFromJsonSerialMessage_fromJson___closed__18;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__20() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instToJsonSerialMessage_toJson___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__21() {
_start:
{
uint8_t x_1; lean_object* x_2; lean_object* x_3; 
x_1 = 1;
x_2 = l_Lean_instFromJsonSerialMessage_fromJson___closed__20;
x_3 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__22() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonSerialMessage_fromJson___closed__21;
x_2 = l_Lean_instFromJsonSerialMessage_fromJson___closed__3;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__23() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__9;
x_2 = l_Lean_instFromJsonSerialMessage_fromJson___closed__22;
x_3 = lean_string_append(x_2, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instFromJsonSerialMessage_fromJson(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__1;
lean_inc(x_1);
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__0(x_1, x_2);
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
lean_dec(x_1);
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = l_Lean_instFromJsonSerialMessage_fromJson___closed__5;
x_7 = lean_string_append(x_6, x_5);
lean_dec(x_5);
lean_ctor_set(x_3, 0, x_7);
return x_3;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_ctor_get(x_3, 0);
lean_inc(x_8);
lean_dec(x_3);
x_9 = l_Lean_instFromJsonSerialMessage_fromJson___closed__5;
x_10 = lean_string_append(x_9, x_8);
lean_dec(x_8);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_12; 
lean_dec(x_1);
x_12 = !lean_is_exclusive(x_3);
if (x_12 == 0)
{
lean_ctor_set_tag(x_3, 0);
return x_3;
}
else
{
lean_object* x_13; lean_object* x_14; 
x_13 = lean_ctor_get(x_3, 0);
lean_inc(x_13);
lean_dec(x_3);
x_14 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
else
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_15 = lean_ctor_get(x_3, 0);
lean_inc(x_15);
lean_dec_ref(x_3);
x_16 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__2;
lean_inc(x_1);
x_17 = l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__1(x_1, x_16);
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_18; 
lean_dec(x_15);
lean_dec(x_1);
x_18 = !lean_is_exclusive(x_17);
if (x_18 == 0)
{
lean_object* x_19; lean_object* x_20; lean_object* x_21; 
x_19 = lean_ctor_get(x_17, 0);
x_20 = l_Lean_instFromJsonSerialMessage_fromJson___closed__7;
x_21 = lean_string_append(x_20, x_19);
lean_dec(x_19);
lean_ctor_set(x_17, 0, x_21);
return x_17;
}
else
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_22 = lean_ctor_get(x_17, 0);
lean_inc(x_22);
lean_dec(x_17);
x_23 = l_Lean_instFromJsonSerialMessage_fromJson___closed__7;
x_24 = lean_string_append(x_23, x_22);
lean_dec(x_22);
x_25 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_25, 0, x_24);
return x_25;
}
}
else
{
if (lean_obj_tag(x_17) == 0)
{
uint8_t x_26; 
lean_dec(x_15);
lean_dec(x_1);
x_26 = !lean_is_exclusive(x_17);
if (x_26 == 0)
{
lean_ctor_set_tag(x_17, 0);
return x_17;
}
else
{
lean_object* x_27; lean_object* x_28; 
x_27 = lean_ctor_get(x_17, 0);
lean_inc(x_27);
lean_dec(x_17);
x_28 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_28, 0, x_27);
return x_28;
}
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; 
x_29 = lean_ctor_get(x_17, 0);
lean_inc(x_29);
lean_dec_ref(x_17);
x_30 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__3;
lean_inc(x_1);
x_31 = l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__2(x_1, x_30);
if (lean_obj_tag(x_31) == 0)
{
uint8_t x_32; 
lean_dec(x_29);
lean_dec(x_15);
lean_dec(x_1);
x_32 = !lean_is_exclusive(x_31);
if (x_32 == 0)
{
lean_object* x_33; lean_object* x_34; lean_object* x_35; 
x_33 = lean_ctor_get(x_31, 0);
x_34 = l_Lean_instFromJsonSerialMessage_fromJson___closed__9;
x_35 = lean_string_append(x_34, x_33);
lean_dec(x_33);
lean_ctor_set(x_31, 0, x_35);
return x_31;
}
else
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; 
x_36 = lean_ctor_get(x_31, 0);
lean_inc(x_36);
lean_dec(x_31);
x_37 = l_Lean_instFromJsonSerialMessage_fromJson___closed__9;
x_38 = lean_string_append(x_37, x_36);
lean_dec(x_36);
x_39 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_39, 0, x_38);
return x_39;
}
}
else
{
if (lean_obj_tag(x_31) == 0)
{
uint8_t x_40; 
lean_dec(x_29);
lean_dec(x_15);
lean_dec(x_1);
x_40 = !lean_is_exclusive(x_31);
if (x_40 == 0)
{
lean_ctor_set_tag(x_31, 0);
return x_31;
}
else
{
lean_object* x_41; lean_object* x_42; 
x_41 = lean_ctor_get(x_31, 0);
lean_inc(x_41);
lean_dec(x_31);
x_42 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_42, 0, x_41);
return x_42;
}
}
else
{
lean_object* x_43; lean_object* x_44; lean_object* x_45; 
x_43 = lean_ctor_get(x_31, 0);
lean_inc(x_43);
lean_dec_ref(x_31);
x_44 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__4;
lean_inc(x_1);
x_45 = l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__4(x_1, x_44);
if (lean_obj_tag(x_45) == 0)
{
uint8_t x_46; 
lean_dec(x_43);
lean_dec(x_29);
lean_dec(x_15);
lean_dec(x_1);
x_46 = !lean_is_exclusive(x_45);
if (x_46 == 0)
{
lean_object* x_47; lean_object* x_48; lean_object* x_49; 
x_47 = lean_ctor_get(x_45, 0);
x_48 = l_Lean_instFromJsonSerialMessage_fromJson___closed__11;
x_49 = lean_string_append(x_48, x_47);
lean_dec(x_47);
lean_ctor_set(x_45, 0, x_49);
return x_45;
}
else
{
lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; 
x_50 = lean_ctor_get(x_45, 0);
lean_inc(x_50);
lean_dec(x_45);
x_51 = l_Lean_instFromJsonSerialMessage_fromJson___closed__11;
x_52 = lean_string_append(x_51, x_50);
lean_dec(x_50);
x_53 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_53, 0, x_52);
return x_53;
}
}
else
{
if (lean_obj_tag(x_45) == 0)
{
uint8_t x_54; 
lean_dec(x_43);
lean_dec(x_29);
lean_dec(x_15);
lean_dec(x_1);
x_54 = !lean_is_exclusive(x_45);
if (x_54 == 0)
{
lean_ctor_set_tag(x_45, 0);
return x_45;
}
else
{
lean_object* x_55; lean_object* x_56; 
x_55 = lean_ctor_get(x_45, 0);
lean_inc(x_55);
lean_dec(x_45);
x_56 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_56, 0, x_55);
return x_56;
}
}
else
{
lean_object* x_57; lean_object* x_58; lean_object* x_59; 
x_57 = lean_ctor_get(x_45, 0);
lean_inc(x_57);
lean_dec_ref(x_45);
x_58 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__5;
lean_inc(x_1);
x_59 = l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__5(x_1, x_58);
if (lean_obj_tag(x_59) == 0)
{
uint8_t x_60; 
lean_dec(x_57);
lean_dec(x_43);
lean_dec(x_29);
lean_dec(x_15);
lean_dec(x_1);
x_60 = !lean_is_exclusive(x_59);
if (x_60 == 0)
{
lean_object* x_61; lean_object* x_62; lean_object* x_63; 
x_61 = lean_ctor_get(x_59, 0);
x_62 = l_Lean_instFromJsonSerialMessage_fromJson___closed__13;
x_63 = lean_string_append(x_62, x_61);
lean_dec(x_61);
lean_ctor_set(x_59, 0, x_63);
return x_59;
}
else
{
lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; 
x_64 = lean_ctor_get(x_59, 0);
lean_inc(x_64);
lean_dec(x_59);
x_65 = l_Lean_instFromJsonSerialMessage_fromJson___closed__13;
x_66 = lean_string_append(x_65, x_64);
lean_dec(x_64);
x_67 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_67, 0, x_66);
return x_67;
}
}
else
{
if (lean_obj_tag(x_59) == 0)
{
uint8_t x_68; 
lean_dec(x_57);
lean_dec(x_43);
lean_dec(x_29);
lean_dec(x_15);
lean_dec(x_1);
x_68 = !lean_is_exclusive(x_59);
if (x_68 == 0)
{
lean_ctor_set_tag(x_59, 0);
return x_59;
}
else
{
lean_object* x_69; lean_object* x_70; 
x_69 = lean_ctor_get(x_59, 0);
lean_inc(x_69);
lean_dec(x_59);
x_70 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_70, 0, x_69);
return x_70;
}
}
else
{
lean_object* x_71; lean_object* x_72; lean_object* x_73; 
x_71 = lean_ctor_get(x_59, 0);
lean_inc(x_71);
lean_dec_ref(x_59);
x_72 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__6;
lean_inc(x_1);
x_73 = l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__4(x_1, x_72);
if (lean_obj_tag(x_73) == 0)
{
uint8_t x_74; 
lean_dec(x_71);
lean_dec(x_57);
lean_dec(x_43);
lean_dec(x_29);
lean_dec(x_15);
lean_dec(x_1);
x_74 = !lean_is_exclusive(x_73);
if (x_74 == 0)
{
lean_object* x_75; lean_object* x_76; lean_object* x_77; 
x_75 = lean_ctor_get(x_73, 0);
x_76 = l_Lean_instFromJsonSerialMessage_fromJson___closed__15;
x_77 = lean_string_append(x_76, x_75);
lean_dec(x_75);
lean_ctor_set(x_73, 0, x_77);
return x_73;
}
else
{
lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; 
x_78 = lean_ctor_get(x_73, 0);
lean_inc(x_78);
lean_dec(x_73);
x_79 = l_Lean_instFromJsonSerialMessage_fromJson___closed__15;
x_80 = lean_string_append(x_79, x_78);
lean_dec(x_78);
x_81 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_81, 0, x_80);
return x_81;
}
}
else
{
if (lean_obj_tag(x_73) == 0)
{
uint8_t x_82; 
lean_dec(x_71);
lean_dec(x_57);
lean_dec(x_43);
lean_dec(x_29);
lean_dec(x_15);
lean_dec(x_1);
x_82 = !lean_is_exclusive(x_73);
if (x_82 == 0)
{
lean_ctor_set_tag(x_73, 0);
return x_73;
}
else
{
lean_object* x_83; lean_object* x_84; 
x_83 = lean_ctor_get(x_73, 0);
lean_inc(x_83);
lean_dec(x_73);
x_84 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_84, 0, x_83);
return x_84;
}
}
else
{
lean_object* x_85; lean_object* x_86; lean_object* x_87; 
x_85 = lean_ctor_get(x_73, 0);
lean_inc(x_85);
lean_dec_ref(x_73);
x_86 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__7;
lean_inc(x_1);
x_87 = l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__0(x_1, x_86);
if (lean_obj_tag(x_87) == 0)
{
uint8_t x_88; 
lean_dec(x_85);
lean_dec(x_71);
lean_dec(x_57);
lean_dec(x_43);
lean_dec(x_29);
lean_dec(x_15);
lean_dec(x_1);
x_88 = !lean_is_exclusive(x_87);
if (x_88 == 0)
{
lean_object* x_89; lean_object* x_90; lean_object* x_91; 
x_89 = lean_ctor_get(x_87, 0);
x_90 = l_Lean_instFromJsonSerialMessage_fromJson___closed__17;
x_91 = lean_string_append(x_90, x_89);
lean_dec(x_89);
lean_ctor_set(x_87, 0, x_91);
return x_87;
}
else
{
lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; 
x_92 = lean_ctor_get(x_87, 0);
lean_inc(x_92);
lean_dec(x_87);
x_93 = l_Lean_instFromJsonSerialMessage_fromJson___closed__17;
x_94 = lean_string_append(x_93, x_92);
lean_dec(x_92);
x_95 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_95, 0, x_94);
return x_95;
}
}
else
{
if (lean_obj_tag(x_87) == 0)
{
uint8_t x_96; 
lean_dec(x_85);
lean_dec(x_71);
lean_dec(x_57);
lean_dec(x_43);
lean_dec(x_29);
lean_dec(x_15);
lean_dec(x_1);
x_96 = !lean_is_exclusive(x_87);
if (x_96 == 0)
{
lean_ctor_set_tag(x_87, 0);
return x_87;
}
else
{
lean_object* x_97; lean_object* x_98; 
x_97 = lean_ctor_get(x_87, 0);
lean_inc(x_97);
lean_dec(x_87);
x_98 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_98, 0, x_97);
return x_98;
}
}
else
{
lean_object* x_99; lean_object* x_100; lean_object* x_101; 
x_99 = lean_ctor_get(x_87, 0);
lean_inc(x_99);
lean_dec_ref(x_87);
x_100 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__8;
lean_inc(x_1);
x_101 = l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__0(x_1, x_100);
if (lean_obj_tag(x_101) == 0)
{
uint8_t x_102; 
lean_dec(x_99);
lean_dec(x_85);
lean_dec(x_71);
lean_dec(x_57);
lean_dec(x_43);
lean_dec(x_29);
lean_dec(x_15);
lean_dec(x_1);
x_102 = !lean_is_exclusive(x_101);
if (x_102 == 0)
{
lean_object* x_103; lean_object* x_104; lean_object* x_105; 
x_103 = lean_ctor_get(x_101, 0);
x_104 = l_Lean_instFromJsonSerialMessage_fromJson___closed__19;
x_105 = lean_string_append(x_104, x_103);
lean_dec(x_103);
lean_ctor_set(x_101, 0, x_105);
return x_101;
}
else
{
lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; 
x_106 = lean_ctor_get(x_101, 0);
lean_inc(x_106);
lean_dec(x_101);
x_107 = l_Lean_instFromJsonSerialMessage_fromJson___closed__19;
x_108 = lean_string_append(x_107, x_106);
lean_dec(x_106);
x_109 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_109, 0, x_108);
return x_109;
}
}
else
{
if (lean_obj_tag(x_101) == 0)
{
uint8_t x_110; 
lean_dec(x_99);
lean_dec(x_85);
lean_dec(x_71);
lean_dec(x_57);
lean_dec(x_43);
lean_dec(x_29);
lean_dec(x_15);
lean_dec(x_1);
x_110 = !lean_is_exclusive(x_101);
if (x_110 == 0)
{
lean_ctor_set_tag(x_101, 0);
return x_101;
}
else
{
lean_object* x_111; lean_object* x_112; 
x_111 = lean_ctor_get(x_101, 0);
lean_inc(x_111);
lean_dec(x_101);
x_112 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_112, 0, x_111);
return x_112;
}
}
else
{
lean_object* x_113; lean_object* x_114; lean_object* x_115; 
x_113 = lean_ctor_get(x_101, 0);
lean_inc(x_113);
lean_dec_ref(x_101);
x_114 = l_Lean_instToJsonSerialMessage_toJson___closed__0;
x_115 = l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__6(x_1, x_114);
if (lean_obj_tag(x_115) == 0)
{
uint8_t x_116; 
lean_dec(x_113);
lean_dec(x_99);
lean_dec(x_85);
lean_dec(x_71);
lean_dec(x_57);
lean_dec(x_43);
lean_dec(x_29);
lean_dec(x_15);
x_116 = !lean_is_exclusive(x_115);
if (x_116 == 0)
{
lean_object* x_117; lean_object* x_118; lean_object* x_119; 
x_117 = lean_ctor_get(x_115, 0);
x_118 = l_Lean_instFromJsonSerialMessage_fromJson___closed__23;
x_119 = lean_string_append(x_118, x_117);
lean_dec(x_117);
lean_ctor_set(x_115, 0, x_119);
return x_115;
}
else
{
lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; 
x_120 = lean_ctor_get(x_115, 0);
lean_inc(x_120);
lean_dec(x_115);
x_121 = l_Lean_instFromJsonSerialMessage_fromJson___closed__23;
x_122 = lean_string_append(x_121, x_120);
lean_dec(x_120);
x_123 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_123, 0, x_122);
return x_123;
}
}
else
{
if (lean_obj_tag(x_115) == 0)
{
uint8_t x_124; 
lean_dec(x_113);
lean_dec(x_99);
lean_dec(x_85);
lean_dec(x_71);
lean_dec(x_57);
lean_dec(x_43);
lean_dec(x_29);
lean_dec(x_15);
x_124 = !lean_is_exclusive(x_115);
if (x_124 == 0)
{
lean_ctor_set_tag(x_115, 0);
return x_115;
}
else
{
lean_object* x_125; lean_object* x_126; 
x_125 = lean_ctor_get(x_115, 0);
lean_inc(x_125);
lean_dec(x_115);
x_126 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_126, 0, x_125);
return x_126;
}
}
else
{
uint8_t x_127; 
x_127 = !lean_is_exclusive(x_115);
if (x_127 == 0)
{
lean_object* x_128; lean_object* x_129; uint8_t x_130; uint8_t x_131; uint8_t x_132; lean_object* x_133; 
x_128 = lean_ctor_get(x_115, 0);
x_129 = lean_alloc_ctor(0, 5, 3);
lean_ctor_set(x_129, 0, x_15);
lean_ctor_set(x_129, 1, x_29);
lean_ctor_set(x_129, 2, x_43);
lean_ctor_set(x_129, 3, x_99);
lean_ctor_set(x_129, 4, x_113);
x_130 = lean_unbox(x_57);
lean_dec(x_57);
lean_ctor_set_uint8(x_129, sizeof(void*)*5, x_130);
x_131 = lean_unbox(x_71);
lean_dec(x_71);
lean_ctor_set_uint8(x_129, sizeof(void*)*5 + 1, x_131);
x_132 = lean_unbox(x_85);
lean_dec(x_85);
lean_ctor_set_uint8(x_129, sizeof(void*)*5 + 2, x_132);
x_133 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_133, 0, x_129);
lean_ctor_set(x_133, 1, x_128);
lean_ctor_set(x_115, 0, x_133);
return x_115;
}
else
{
lean_object* x_134; lean_object* x_135; uint8_t x_136; uint8_t x_137; uint8_t x_138; lean_object* x_139; lean_object* x_140; 
x_134 = lean_ctor_get(x_115, 0);
lean_inc(x_134);
lean_dec(x_115);
x_135 = lean_alloc_ctor(0, 5, 3);
lean_ctor_set(x_135, 0, x_15);
lean_ctor_set(x_135, 1, x_29);
lean_ctor_set(x_135, 2, x_43);
lean_ctor_set(x_135, 3, x_99);
lean_ctor_set(x_135, 4, x_113);
x_136 = lean_unbox(x_57);
lean_dec(x_57);
lean_ctor_set_uint8(x_135, sizeof(void*)*5, x_136);
x_137 = lean_unbox(x_71);
lean_dec(x_71);
lean_ctor_set_uint8(x_135, sizeof(void*)*5 + 1, x_137);
x_138 = lean_unbox(x_85);
lean_dec(x_85);
lean_ctor_set_uint8(x_135, sizeof(void*)*5 + 2, x_138);
x_139 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_139, 0, x_135);
lean_ctor_set(x_139, 1, x_134);
x_140 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_140, 0, x_139);
return x_140;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__0(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__1___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__1(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__2___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__2(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__4___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__4(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__5___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__5(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__6___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__6(x_1, x_2);
lean_dec_ref(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_instFromJsonSerialMessage_fromJson), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instFromJsonSerialMessage() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instFromJsonSerialMessage___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_errorNameSuffix___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_namedError", 11, 11);
return x_1;
}
}
static lean_object* _init_l_Lean_errorNameSuffix() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_errorNameSuffix___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_kindOfErrorName(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_errorNameSuffix___closed__0;
x_3 = l_Lean_Name_str___override(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_tagWithErrorName(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; 
x_3 = l_Lean_kindOfErrorName(x_2);
x_4 = lean_alloc_ctor(8, 2, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_errorNameOfKind_x3f(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 1)
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_1, 1);
x_4 = l_Lean_errorNameSuffix___closed__0;
x_5 = lean_string_dec_eq(x_3, x_4);
if (x_5 == 0)
{
lean_object* x_6; 
x_6 = lean_box(0);
return x_6;
}
else
{
lean_object* x_7; 
lean_inc(x_2);
x_7 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_7, 0, x_2);
return x_7;
}
}
else
{
lean_object* x_8; 
x_8 = lean_box(0);
return x_8;
}
}
}
LEAN_EXPORT lean_object* l_Lean_errorNameOfKind_x3f___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_errorNameOfKind_x3f(x_1);
lean_dec(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_errorName_x3f(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_MessageData_kind(x_1);
x_3 = l_Lean_errorNameOfKind_x3f(x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_errorName_x3f___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_MessageData_errorName_x3f(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Message_errorName_x3f(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_ctor_get(x_1, 4);
x_3 = l_Lean_MessageData_errorName_x3f(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Message_errorName_x3f___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Message_errorName_x3f(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_SerialMessage_toMessage(lean_object* x_1) {
_start:
{
lean_object* x_2; uint8_t x_3; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
lean_dec_ref(x_1);
x_3 = !lean_is_exclusive(x_2);
if (x_3 == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_4 = lean_ctor_get(x_2, 4);
x_5 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_5, 0, x_4);
x_6 = l_Lean_MessageData_ofFormat(x_5);
lean_ctor_set(x_2, 4, x_6);
return x_2;
}
else
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; uint8_t x_11; uint8_t x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_7 = lean_ctor_get(x_2, 0);
x_8 = lean_ctor_get(x_2, 1);
x_9 = lean_ctor_get(x_2, 2);
x_10 = lean_ctor_get_uint8(x_2, sizeof(void*)*5);
x_11 = lean_ctor_get_uint8(x_2, sizeof(void*)*5 + 1);
x_12 = lean_ctor_get_uint8(x_2, sizeof(void*)*5 + 2);
x_13 = lean_ctor_get(x_2, 3);
x_14 = lean_ctor_get(x_2, 4);
lean_inc(x_14);
lean_inc(x_13);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_dec(x_2);
x_15 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_15, 0, x_14);
x_16 = l_Lean_MessageData_ofFormat(x_15);
x_17 = lean_alloc_ctor(0, 5, 3);
lean_ctor_set(x_17, 0, x_7);
lean_ctor_set(x_17, 1, x_8);
lean_ctor_set(x_17, 2, x_9);
lean_ctor_set(x_17, 3, x_13);
lean_ctor_set(x_17, 4, x_16);
lean_ctor_set_uint8(x_17, sizeof(void*)*5, x_10);
lean_ctor_set_uint8(x_17, sizeof(void*)*5 + 1, x_11);
lean_ctor_set_uint8(x_17, sizeof(void*)*5 + 2, x_12);
return x_17;
}
}
}
static lean_object* _init_l_Lean_SerialMessage_toString___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instToJsonMessageSeverity_toJson___closed__2;
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_SerialMessage_toString___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instToJsonMessageSeverity_toJson___closed__4;
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_SerialMessage_toString___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(":\n", 2, 2);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_SerialMessage_toString(lean_object* x_1, uint8_t x_2) {
_start:
{
lean_object* x_3; lean_object* x_7; uint8_t x_8; uint32_t x_9; lean_object* x_13; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; uint8_t x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_43; 
x_26 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_26);
x_27 = lean_ctor_get(x_1, 1);
lean_inc(x_27);
lean_dec_ref(x_1);
x_28 = lean_ctor_get(x_26, 0);
lean_inc_ref(x_28);
x_29 = lean_ctor_get(x_26, 1);
lean_inc_ref(x_29);
x_30 = lean_ctor_get(x_26, 2);
lean_inc(x_30);
x_31 = lean_ctor_get_uint8(x_26, sizeof(void*)*5 + 1);
x_32 = lean_ctor_get(x_26, 3);
lean_inc_ref(x_32);
x_33 = lean_ctor_get(x_26, 4);
lean_inc(x_33);
lean_dec_ref(x_26);
if (x_2 == 0)
{
lean_object* x_50; 
lean_dec(x_30);
x_50 = lean_box(0);
x_43 = x_50;
goto block_49;
}
else
{
x_43 = x_30;
goto block_49;
}
block_6:
{
lean_object* x_4; lean_object* x_5; 
x_4 = l_Lean_MessageData_formatAux___closed__2;
x_5 = lean_string_append(x_3, x_4);
return x_5;
}
block_12:
{
uint32_t x_10; uint8_t x_11; 
x_10 = 10;
x_11 = lean_uint32_dec_eq(x_9, x_10);
if (x_11 == 0)
{
x_3 = x_7;
goto block_6;
}
else
{
if (x_8 == 0)
{
return x_7;
}
else
{
x_3 = x_7;
goto block_6;
}
}
}
block_25:
{
lean_object* x_14; lean_object* x_15; uint8_t x_16; 
x_14 = lean_string_utf8_byte_size(x_13);
x_15 = lean_unsigned_to_nat(0u);
x_16 = lean_nat_dec_eq(x_14, x_15);
if (x_16 == 0)
{
lean_object* x_17; lean_object* x_18; 
lean_inc(x_14);
lean_inc_ref(x_13);
x_17 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_17, 0, x_13);
lean_ctor_set(x_17, 1, x_15);
lean_ctor_set(x_17, 2, x_14);
x_18 = l_String_Slice_Pos_prev_x3f(x_17, x_14);
lean_dec(x_14);
if (lean_obj_tag(x_18) == 0)
{
uint32_t x_19; 
lean_dec_ref(x_17);
x_19 = 65;
x_7 = x_13;
x_8 = x_16;
x_9 = x_19;
goto block_12;
}
else
{
lean_object* x_20; lean_object* x_21; 
x_20 = lean_ctor_get(x_18, 0);
lean_inc(x_20);
lean_dec_ref(x_18);
x_21 = l_String_Slice_Pos_get_x3f(x_17, x_20);
lean_dec(x_20);
lean_dec_ref(x_17);
if (lean_obj_tag(x_21) == 0)
{
uint32_t x_22; 
x_22 = 65;
x_7 = x_13;
x_8 = x_16;
x_9 = x_22;
goto block_12;
}
else
{
lean_object* x_23; uint32_t x_24; 
x_23 = lean_ctor_get(x_21, 0);
lean_inc(x_23);
lean_dec_ref(x_21);
x_24 = lean_unbox_uint32(x_23);
lean_dec(x_23);
x_7 = x_13;
x_8 = x_16;
x_9 = x_24;
goto block_12;
}
}
}
else
{
lean_dec(x_14);
x_3 = x_13;
goto block_6;
}
}
block_42:
{
switch (x_31) {
case 0:
{
lean_dec(x_34);
lean_dec_ref(x_29);
lean_dec_ref(x_28);
lean_dec(x_27);
x_13 = x_35;
goto block_25;
}
case 1:
{
lean_object* x_36; lean_object* x_37; lean_object* x_38; 
x_36 = l_Lean_SerialMessage_toString___closed__0;
x_37 = l_Lean_errorNameOfKind_x3f(x_27);
lean_dec(x_27);
x_38 = l_Lean_mkErrorStringWithPos(x_28, x_29, x_35, x_34, x_36, x_37);
lean_dec_ref(x_35);
x_13 = x_38;
goto block_25;
}
default: 
{
lean_object* x_39; lean_object* x_40; lean_object* x_41; 
x_39 = l_Lean_SerialMessage_toString___closed__1;
x_40 = l_Lean_errorNameOfKind_x3f(x_27);
lean_dec(x_27);
x_41 = l_Lean_mkErrorStringWithPos(x_28, x_29, x_35, x_34, x_39, x_40);
lean_dec_ref(x_35);
x_13 = x_41;
goto block_25;
}
}
}
block_49:
{
lean_object* x_44; uint8_t x_45; 
x_44 = l_Lean_mkErrorStringWithPos___closed__2;
x_45 = lean_string_dec_eq(x_32, x_44);
if (x_45 == 0)
{
lean_object* x_46; lean_object* x_47; lean_object* x_48; 
x_46 = l_Lean_SerialMessage_toString___closed__2;
x_47 = lean_string_append(x_32, x_46);
x_48 = lean_string_append(x_47, x_33);
lean_dec(x_33);
x_34 = x_43;
x_35 = x_48;
goto block_42;
}
else
{
lean_dec_ref(x_32);
x_34 = x_43;
x_35 = x_33;
goto block_42;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_SerialMessage_toString___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = lean_unbox(x_2);
x_4 = l_Lean_SerialMessage_toString(x_1, x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_SerialMessage_instToString___lam__0(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = 0;
x_3 = l_Lean_SerialMessage_toString(x_1, x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_SerialMessage_instToString() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_SerialMessage_instToString___lam__0), 1, 0);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Message_kind(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_ctor_get(x_1, 4);
x_3 = l_Lean_MessageData_kind(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Message_kind___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_Message_kind(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT uint8_t l_Lean_Message_isTrace(lean_object* x_1) {
_start:
{
lean_object* x_2; uint8_t x_3; 
x_2 = lean_ctor_get(x_1, 4);
x_3 = l_Lean_MessageData_isTrace(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Message_isTrace___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Lean_Message_isTrace(x_1);
lean_dec_ref(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Message_serialize(lean_object* x_1) {
_start:
{
uint8_t x_3; 
x_3 = !lean_is_exclusive(x_1);
if (x_3 == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_4 = lean_ctor_get(x_1, 4);
lean_inc(x_4);
x_5 = l_Lean_MessageData_toString(x_4);
lean_ctor_set(x_1, 4, x_5);
x_6 = l_Lean_MessageData_kind(x_4);
lean_dec(x_4);
x_7 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_7, 0, x_1);
lean_ctor_set(x_7, 1, x_6);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; uint8_t x_11; uint8_t x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_8 = lean_ctor_get(x_1, 0);
x_9 = lean_ctor_get(x_1, 1);
x_10 = lean_ctor_get(x_1, 2);
x_11 = lean_ctor_get_uint8(x_1, sizeof(void*)*5);
x_12 = lean_ctor_get_uint8(x_1, sizeof(void*)*5 + 1);
x_13 = lean_ctor_get_uint8(x_1, sizeof(void*)*5 + 2);
x_14 = lean_ctor_get(x_1, 3);
x_15 = lean_ctor_get(x_1, 4);
lean_inc(x_15);
lean_inc(x_14);
lean_inc(x_10);
lean_inc(x_9);
lean_inc(x_8);
lean_dec(x_1);
lean_inc(x_15);
x_16 = l_Lean_MessageData_toString(x_15);
x_17 = lean_alloc_ctor(0, 5, 3);
lean_ctor_set(x_17, 0, x_8);
lean_ctor_set(x_17, 1, x_9);
lean_ctor_set(x_17, 2, x_10);
lean_ctor_set(x_17, 3, x_14);
lean_ctor_set(x_17, 4, x_16);
lean_ctor_set_uint8(x_17, sizeof(void*)*5, x_11);
lean_ctor_set_uint8(x_17, sizeof(void*)*5 + 1, x_12);
lean_ctor_set_uint8(x_17, sizeof(void*)*5 + 2, x_13);
x_18 = l_Lean_MessageData_kind(x_15);
lean_dec(x_15);
x_19 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_19, 0, x_17);
lean_ctor_set(x_19, 1, x_18);
return x_19;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Message_serialize___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Message_serialize(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Message_toString(lean_object* x_1, uint8_t x_2) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_15; uint8_t x_16; uint32_t x_17; lean_object* x_21; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_44; 
x_4 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_5);
x_6 = lean_ctor_get(x_1, 2);
lean_inc(x_6);
x_7 = lean_ctor_get_uint8(x_1, sizeof(void*)*5 + 1);
x_8 = lean_ctor_get(x_1, 3);
lean_inc_ref(x_8);
x_9 = lean_ctor_get(x_1, 4);
lean_inc(x_9);
lean_dec_ref(x_1);
lean_inc(x_9);
x_10 = l_Lean_MessageData_toString(x_9);
x_34 = l_Lean_MessageData_kind(x_9);
lean_dec(x_9);
if (x_2 == 0)
{
lean_object* x_51; 
lean_dec(x_6);
x_51 = lean_box(0);
x_44 = x_51;
goto block_50;
}
else
{
x_44 = x_6;
goto block_50;
}
block_14:
{
lean_object* x_12; lean_object* x_13; 
x_12 = l_Lean_MessageData_formatAux___closed__2;
x_13 = lean_string_append(x_11, x_12);
return x_13;
}
block_20:
{
uint32_t x_18; uint8_t x_19; 
x_18 = 10;
x_19 = lean_uint32_dec_eq(x_17, x_18);
if (x_19 == 0)
{
x_11 = x_15;
goto block_14;
}
else
{
if (x_16 == 0)
{
return x_15;
}
else
{
x_11 = x_15;
goto block_14;
}
}
}
block_33:
{
lean_object* x_22; lean_object* x_23; uint8_t x_24; 
x_22 = lean_string_utf8_byte_size(x_21);
x_23 = lean_unsigned_to_nat(0u);
x_24 = lean_nat_dec_eq(x_22, x_23);
if (x_24 == 0)
{
lean_object* x_25; lean_object* x_26; 
lean_inc(x_22);
lean_inc_ref(x_21);
x_25 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_25, 0, x_21);
lean_ctor_set(x_25, 1, x_23);
lean_ctor_set(x_25, 2, x_22);
x_26 = l_String_Slice_Pos_prev_x3f(x_25, x_22);
lean_dec(x_22);
if (lean_obj_tag(x_26) == 0)
{
uint32_t x_27; 
lean_dec_ref(x_25);
x_27 = 65;
x_15 = x_21;
x_16 = x_24;
x_17 = x_27;
goto block_20;
}
else
{
lean_object* x_28; lean_object* x_29; 
x_28 = lean_ctor_get(x_26, 0);
lean_inc(x_28);
lean_dec_ref(x_26);
x_29 = l_String_Slice_Pos_get_x3f(x_25, x_28);
lean_dec(x_28);
lean_dec_ref(x_25);
if (lean_obj_tag(x_29) == 0)
{
uint32_t x_30; 
x_30 = 65;
x_15 = x_21;
x_16 = x_24;
x_17 = x_30;
goto block_20;
}
else
{
lean_object* x_31; uint32_t x_32; 
x_31 = lean_ctor_get(x_29, 0);
lean_inc(x_31);
lean_dec_ref(x_29);
x_32 = lean_unbox_uint32(x_31);
lean_dec(x_31);
x_15 = x_21;
x_16 = x_24;
x_17 = x_32;
goto block_20;
}
}
}
else
{
lean_dec(x_22);
x_11 = x_21;
goto block_14;
}
}
block_43:
{
switch (x_7) {
case 0:
{
lean_dec(x_35);
lean_dec(x_34);
lean_dec_ref(x_5);
lean_dec_ref(x_4);
x_21 = x_36;
goto block_33;
}
case 1:
{
lean_object* x_37; lean_object* x_38; lean_object* x_39; 
x_37 = l_Lean_SerialMessage_toString___closed__0;
x_38 = l_Lean_errorNameOfKind_x3f(x_34);
lean_dec(x_34);
x_39 = l_Lean_mkErrorStringWithPos(x_4, x_5, x_36, x_35, x_37, x_38);
lean_dec_ref(x_36);
x_21 = x_39;
goto block_33;
}
default: 
{
lean_object* x_40; lean_object* x_41; lean_object* x_42; 
x_40 = l_Lean_SerialMessage_toString___closed__1;
x_41 = l_Lean_errorNameOfKind_x3f(x_34);
lean_dec(x_34);
x_42 = l_Lean_mkErrorStringWithPos(x_4, x_5, x_36, x_35, x_40, x_41);
lean_dec_ref(x_36);
x_21 = x_42;
goto block_33;
}
}
}
block_50:
{
lean_object* x_45; uint8_t x_46; 
x_45 = l_Lean_mkErrorStringWithPos___closed__2;
x_46 = lean_string_dec_eq(x_8, x_45);
if (x_46 == 0)
{
lean_object* x_47; lean_object* x_48; lean_object* x_49; 
x_47 = l_Lean_SerialMessage_toString___closed__2;
x_48 = lean_string_append(x_8, x_47);
x_49 = lean_string_append(x_48, x_10);
lean_dec_ref(x_10);
x_35 = x_44;
x_36 = x_49;
goto block_43;
}
else
{
lean_dec_ref(x_8);
x_35 = x_44;
x_36 = x_10;
goto block_43;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Message_toString___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = lean_unbox(x_2);
x_5 = l_Lean_Message_toString(x_1, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Message_toJson(lean_object* x_1) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; uint8_t x_7; uint8_t x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; lean_object* x_46; uint8_t x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; lean_object* x_63; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_3);
x_4 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_1, 2);
lean_inc(x_5);
x_6 = lean_ctor_get_uint8(x_1, sizeof(void*)*5);
x_7 = lean_ctor_get_uint8(x_1, sizeof(void*)*5 + 1);
x_8 = lean_ctor_get_uint8(x_1, sizeof(void*)*5 + 2);
x_9 = lean_ctor_get(x_1, 3);
lean_inc_ref(x_9);
x_10 = lean_ctor_get(x_1, 4);
lean_inc(x_10);
lean_dec_ref(x_1);
lean_inc(x_10);
x_11 = l_Lean_MessageData_toString(x_10);
x_12 = l_Lean_MessageData_kind(x_10);
lean_dec(x_10);
x_13 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__1;
x_14 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_14, 0, x_3);
x_15 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_15, 0, x_13);
lean_ctor_set(x_15, 1, x_14);
x_16 = lean_box(0);
x_17 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_17, 0, x_15);
lean_ctor_set(x_17, 1, x_16);
x_18 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__2;
x_19 = l_Lean_instToJsonPosition_toJson(x_4);
x_20 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_20, 0, x_18);
lean_ctor_set(x_20, 1, x_19);
x_21 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_21, 0, x_20);
lean_ctor_set(x_21, 1, x_16);
x_22 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__3;
x_23 = l_Option_toJson___at___00Lean_instToJsonSerialMessage_toJson_spec__0(x_5);
x_24 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_24, 0, x_22);
lean_ctor_set(x_24, 1, x_23);
x_25 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_25, 0, x_24);
lean_ctor_set(x_25, 1, x_16);
x_26 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__4;
x_27 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_27, 0, x_6);
x_28 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_28, 0, x_26);
lean_ctor_set(x_28, 1, x_27);
x_29 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_29, 0, x_28);
lean_ctor_set(x_29, 1, x_16);
x_30 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__5;
x_31 = l_Lean_instToJsonMessageSeverity_toJson(x_7);
x_32 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_32, 0, x_30);
lean_ctor_set(x_32, 1, x_31);
x_33 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_33, 0, x_32);
lean_ctor_set(x_33, 1, x_16);
x_34 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__6;
x_35 = lean_alloc_ctor(1, 0, 1);
lean_ctor_set_uint8(x_35, 0, x_8);
x_36 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_36, 0, x_34);
lean_ctor_set(x_36, 1, x_35);
x_37 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_37, 0, x_36);
lean_ctor_set(x_37, 1, x_16);
x_38 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__7;
x_39 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_39, 0, x_9);
x_40 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_40, 0, x_38);
lean_ctor_set(x_40, 1, x_39);
x_41 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_41, 0, x_40);
lean_ctor_set(x_41, 1, x_16);
x_42 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__8;
x_43 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_43, 0, x_11);
x_44 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_44, 0, x_42);
lean_ctor_set(x_44, 1, x_43);
x_45 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_45, 0, x_44);
lean_ctor_set(x_45, 1, x_16);
x_46 = l_Lean_instToJsonSerialMessage_toJson___closed__0;
x_47 = 1;
x_48 = l_Lean_Name_toStringWithToken___at___00Lean_Name_toString_spec__0(x_12, x_47);
x_49 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_49, 0, x_48);
x_50 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_50, 0, x_46);
lean_ctor_set(x_50, 1, x_49);
x_51 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_51, 0, x_50);
lean_ctor_set(x_51, 1, x_16);
x_52 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_52, 0, x_51);
lean_ctor_set(x_52, 1, x_16);
x_53 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_53, 0, x_45);
lean_ctor_set(x_53, 1, x_52);
x_54 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_54, 0, x_41);
lean_ctor_set(x_54, 1, x_53);
x_55 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_55, 0, x_37);
lean_ctor_set(x_55, 1, x_54);
x_56 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_56, 0, x_33);
lean_ctor_set(x_56, 1, x_55);
x_57 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_57, 0, x_29);
lean_ctor_set(x_57, 1, x_56);
x_58 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_58, 0, x_25);
lean_ctor_set(x_58, 1, x_57);
x_59 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_59, 0, x_21);
lean_ctor_set(x_59, 1, x_58);
x_60 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_60, 0, x_17);
lean_ctor_set(x_60, 1, x_59);
x_61 = l_Lean_instToJsonBaseMessage_toJson___redArg___closed__10;
x_62 = l___private_Init_Data_List_Impl_0__List_flatMapTR_go___at___00Lean_instToJsonSerialMessage_toJson_spec__1(x_60, x_61);
x_63 = l_Lean_Json_mkObj(x_62);
return x_63;
}
}
LEAN_EXPORT lean_object* l_Lean_Message_toJson___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Message_toJson(x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instInhabitedMessageLog_default___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instInhabitedPersistentArray_default(lean_box(0));
return x_1;
}
}
static lean_object* _init_l_Lean_instInhabitedMessageLog_default___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_NameSet_empty;
return x_1;
}
}
static lean_object* _init_l_Lean_instInhabitedMessageLog_default___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instInhabitedMessageLog_default___closed__1;
x_2 = l_Lean_instInhabitedMessageLog_default___closed__0;
x_3 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_2);
lean_ctor_set(x_3, 2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instInhabitedMessageLog_default() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instInhabitedMessageLog_default___closed__2;
return x_1;
}
}
static lean_object* _init_l_Lean_instInhabitedMessageLog() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instInhabitedMessageLog_default;
return x_1;
}
}
static lean_object* _init_l_Lean_MessageLog_empty___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(32u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageLog_empty___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageLog_empty___closed__0;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_MessageLog_empty___closed__2() {
_start:
{
size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = 5;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l_Lean_MessageLog_empty___closed__0;
x_4 = l_Lean_MessageLog_empty___closed__1;
x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_3);
lean_ctor_set(x_5, 2, x_2);
lean_ctor_set(x_5, 3, x_2);
lean_ctor_set_usize(x_5, 4, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_MessageLog_empty___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instInhabitedMessageLog_default___closed__1;
x_2 = l_Lean_MessageLog_empty___closed__2;
x_3 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_2);
lean_ctor_set(x_3, 2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_MessageLog_empty() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_MessageLog_empty___closed__3;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageLog_msgs(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_2);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageLog_msgs___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_MessageLog_msgs(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageLog_reportedPlusUnreported(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_2);
x_3 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_3);
lean_dec_ref(x_1);
x_4 = l_Lean_PersistentArray_append___redArg(x_2, x_3);
lean_dec_ref(x_3);
return x_4;
}
}
LEAN_EXPORT uint8_t l_Lean_MessageLog_hasUnreported(lean_object* x_1) {
_start:
{
lean_object* x_2; uint8_t x_3; 
x_2 = lean_ctor_get(x_1, 1);
x_3 = l_Lean_PersistentArray_isEmpty___redArg(x_2);
if (x_3 == 0)
{
uint8_t x_4; 
x_4 = 1;
return x_4;
}
else
{
uint8_t x_5; 
x_5 = 0;
return x_5;
}
}
}
LEAN_EXPORT lean_object* l_Lean_MessageLog_hasUnreported___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Lean_MessageLog_hasUnreported(x_1);
lean_dec_ref(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageLog_add(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; 
x_3 = !lean_is_exclusive(x_2);
if (x_3 == 0)
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_ctor_get(x_2, 1);
x_5 = l_Lean_PersistentArray_push___redArg(x_4, x_1);
lean_ctor_set(x_2, 1, x_5);
return x_2;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_6 = lean_ctor_get(x_2, 0);
x_7 = lean_ctor_get(x_2, 1);
x_8 = lean_ctor_get(x_2, 2);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_dec(x_2);
x_9 = l_Lean_PersistentArray_push___redArg(x_7, x_1);
x_10 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_10, 0, x_6);
lean_ctor_set(x_10, 1, x_9);
lean_ctor_set(x_10, 2, x_8);
return x_10;
}
}
}
static lean_object* _init_l_Std_DTreeMap_Internal_Impl_Const_alter___at___00Lean_MessageLog_append_spec__0___redArg___lam__0___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_box(0);
x_2 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_alter___at___00Lean_MessageLog_append_spec__0___redArg___lam__0(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; 
x_3 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_3, 0, x_1);
return x_3;
}
else
{
lean_object* x_4; 
x_4 = l_Std_DTreeMap_Internal_Impl_Const_alter___at___00Lean_MessageLog_append_spec__0___redArg___lam__0___closed__0;
return x_4;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_alter___at___00Lean_MessageLog_append_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
if (lean_obj_tag(x_3) == 0)
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; uint8_t x_10; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = lean_ctor_get(x_3, 1);
x_7 = lean_ctor_get(x_3, 2);
x_8 = lean_ctor_get(x_3, 3);
x_9 = lean_ctor_get(x_3, 4);
x_10 = l_Lean_Name_quickCmp(x_2, x_6);
switch (x_10) {
case 0:
{
lean_object* x_11; lean_object* x_12; 
lean_free_object(x_3);
lean_dec(x_5);
x_11 = l_Std_DTreeMap_Internal_Impl_Const_alter___at___00Lean_MessageLog_append_spec__0___redArg(x_1, x_2, x_8);
x_12 = l_Std_DTreeMap_Internal_Impl_balance___redArg(x_6, x_7, x_11, x_9);
return x_12;
}
case 1:
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; 
lean_dec(x_6);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_7);
x_14 = l_Std_DTreeMap_Internal_Impl_Const_alter___at___00Lean_MessageLog_append_spec__0___redArg___lam__0(x_1, x_13);
lean_dec_ref(x_13);
x_15 = lean_ctor_get(x_14, 0);
lean_inc(x_15);
lean_dec(x_14);
lean_ctor_set(x_3, 2, x_15);
lean_ctor_set(x_3, 1, x_2);
return x_3;
}
default: 
{
lean_object* x_16; lean_object* x_17; 
lean_free_object(x_3);
lean_dec(x_5);
x_16 = l_Std_DTreeMap_Internal_Impl_Const_alter___at___00Lean_MessageLog_append_spec__0___redArg(x_1, x_2, x_9);
x_17 = l_Std_DTreeMap_Internal_Impl_balance___redArg(x_6, x_7, x_8, x_16);
return x_17;
}
}
}
else
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; uint8_t x_23; 
x_18 = lean_ctor_get(x_3, 0);
x_19 = lean_ctor_get(x_3, 1);
x_20 = lean_ctor_get(x_3, 2);
x_21 = lean_ctor_get(x_3, 3);
x_22 = lean_ctor_get(x_3, 4);
lean_inc(x_22);
lean_inc(x_21);
lean_inc(x_20);
lean_inc(x_19);
lean_inc(x_18);
lean_dec(x_3);
x_23 = l_Lean_Name_quickCmp(x_2, x_19);
switch (x_23) {
case 0:
{
lean_object* x_24; lean_object* x_25; 
lean_dec(x_18);
x_24 = l_Std_DTreeMap_Internal_Impl_Const_alter___at___00Lean_MessageLog_append_spec__0___redArg(x_1, x_2, x_21);
x_25 = l_Std_DTreeMap_Internal_Impl_balance___redArg(x_19, x_20, x_24, x_22);
return x_25;
}
case 1:
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
lean_dec(x_19);
x_26 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_26, 0, x_20);
x_27 = l_Std_DTreeMap_Internal_Impl_Const_alter___at___00Lean_MessageLog_append_spec__0___redArg___lam__0(x_1, x_26);
lean_dec_ref(x_26);
x_28 = lean_ctor_get(x_27, 0);
lean_inc(x_28);
lean_dec(x_27);
x_29 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_29, 0, x_18);
lean_ctor_set(x_29, 1, x_2);
lean_ctor_set(x_29, 2, x_28);
lean_ctor_set(x_29, 3, x_21);
lean_ctor_set(x_29, 4, x_22);
return x_29;
}
default: 
{
lean_object* x_30; lean_object* x_31; 
lean_dec(x_18);
x_30 = l_Std_DTreeMap_Internal_Impl_Const_alter___at___00Lean_MessageLog_append_spec__0___redArg(x_1, x_2, x_22);
x_31 = l_Std_DTreeMap_Internal_Impl_balance___redArg(x_19, x_20, x_21, x_30);
return x_31;
}
}
}
}
else
{
lean_object* x_32; lean_object* x_33; lean_object* x_34; lean_object* x_35; lean_object* x_36; 
x_32 = lean_box(0);
x_33 = l_Std_DTreeMap_Internal_Impl_Const_alter___at___00Lean_MessageLog_append_spec__0___redArg___lam__0(x_1, x_32);
x_34 = lean_ctor_get(x_33, 0);
lean_inc(x_34);
lean_dec(x_33);
x_35 = lean_unsigned_to_nat(1u);
x_36 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_36, 0, x_35);
lean_ctor_set(x_36, 1, x_2);
lean_ctor_set(x_36, 2, x_34);
lean_ctor_set(x_36, 3, x_3);
lean_ctor_set(x_36, 4, x_3);
return x_36;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_alter___at___00Lean_MessageLog_append_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_DTreeMap_Internal_Impl_Const_alter___at___00Lean_MessageLog_append_spec__0___redArg(x_1, x_2, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00Lean_MessageLog_append_spec__1_spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_3 = lean_ctor_get(x_2, 1);
lean_inc(x_3);
x_4 = lean_ctor_get(x_2, 2);
lean_inc(x_4);
x_5 = lean_ctor_get(x_2, 3);
lean_inc(x_5);
x_6 = lean_ctor_get(x_2, 4);
lean_inc(x_6);
lean_dec_ref(x_2);
x_7 = l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00Lean_MessageLog_append_spec__1_spec__1(x_1, x_5);
x_8 = l_Std_DTreeMap_Internal_Impl_Const_alter___at___00Lean_MessageLog_append_spec__0___redArg(x_4, x_3, x_7);
x_1 = x_8;
x_2 = x_6;
goto _start;
}
else
{
return x_1;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_foldl___at___00Lean_MessageLog_append_spec__1(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00Lean_MessageLog_append_spec__1_spec__1(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageLog_append(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_3);
x_4 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_1, 2);
lean_inc(x_5);
lean_dec_ref(x_1);
x_6 = !lean_is_exclusive(x_2);
if (x_6 == 0)
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_7 = lean_ctor_get(x_2, 0);
x_8 = lean_ctor_get(x_2, 1);
x_9 = lean_ctor_get(x_2, 2);
x_10 = l_Lean_PersistentArray_append___redArg(x_3, x_7);
lean_dec_ref(x_7);
x_11 = l_Lean_PersistentArray_append___redArg(x_4, x_8);
lean_dec_ref(x_8);
x_12 = l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00Lean_MessageLog_append_spec__1_spec__1(x_5, x_9);
lean_ctor_set(x_2, 2, x_12);
lean_ctor_set(x_2, 1, x_11);
lean_ctor_set(x_2, 0, x_10);
return x_2;
}
else
{
lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
x_13 = lean_ctor_get(x_2, 0);
x_14 = lean_ctor_get(x_2, 1);
x_15 = lean_ctor_get(x_2, 2);
lean_inc(x_15);
lean_inc(x_14);
lean_inc(x_13);
lean_dec(x_2);
x_16 = l_Lean_PersistentArray_append___redArg(x_3, x_13);
lean_dec_ref(x_13);
x_17 = l_Lean_PersistentArray_append___redArg(x_4, x_14);
lean_dec_ref(x_14);
x_18 = l_Std_DTreeMap_Internal_Impl_foldlM___at___00Std_DTreeMap_Internal_Impl_foldl___at___00Lean_MessageLog_append_spec__1_spec__1(x_5, x_15);
x_19 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_19, 0, x_16);
lean_ctor_set(x_19, 1, x_17);
lean_ctor_set(x_19, 2, x_18);
return x_19;
}
}
}
LEAN_EXPORT lean_object* l_Std_DTreeMap_Internal_Impl_Const_alter___at___00Lean_MessageLog_append_spec__0___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Std_DTreeMap_Internal_Impl_Const_alter___at___00Lean_MessageLog_append_spec__0___redArg___lam__0(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_MessageLog_instAppend___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_MessageLog_append), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_MessageLog_instAppend() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_MessageLog_instAppend___closed__0;
return x_1;
}
}
LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0_spec__0_spec__0(lean_object* x_1, size_t x_2, size_t x_3) {
_start:
{
uint8_t x_4; 
x_4 = lean_usize_dec_eq(x_2, x_3);
if (x_4 == 0)
{
lean_object* x_5; uint8_t x_6; 
x_5 = lean_array_uget(x_1, x_2);
x_6 = l_Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0_spec__0(x_5);
lean_dec(x_5);
if (x_6 == 0)
{
size_t x_7; size_t x_8; 
x_7 = 1;
x_8 = lean_usize_add(x_2, x_7);
x_2 = x_8;
goto _start;
}
else
{
return x_6;
}
}
else
{
uint8_t x_10; 
x_10 = 0;
return x_10;
}
}
}
LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0_spec__0_spec__1(lean_object* x_1, size_t x_2, size_t x_3) {
_start:
{
uint8_t x_4; 
x_4 = lean_usize_dec_eq(x_2, x_3);
if (x_4 == 0)
{
lean_object* x_5; uint8_t x_6; uint8_t x_7; 
x_5 = lean_array_uget(x_1, x_2);
x_6 = lean_ctor_get_uint8(x_5, sizeof(void*)*5 + 1);
lean_dec(x_5);
x_7 = 1;
if (x_6 == 2)
{
return x_7;
}
else
{
if (x_4 == 0)
{
size_t x_8; size_t x_9; 
x_8 = 1;
x_9 = lean_usize_add(x_2, x_8);
x_2 = x_9;
goto _start;
}
else
{
return x_7;
}
}
}
else
{
uint8_t x_11; 
x_11 = 0;
return x_11;
}
}
}
LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0_spec__0(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_unsigned_to_nat(0u);
x_4 = lean_array_get_size(x_2);
x_5 = lean_nat_dec_lt(x_3, x_4);
if (x_5 == 0)
{
lean_dec(x_4);
return x_5;
}
else
{
if (x_5 == 0)
{
lean_dec(x_4);
return x_5;
}
else
{
size_t x_6; size_t x_7; uint8_t x_8; 
x_6 = 0;
x_7 = lean_usize_of_nat(x_4);
lean_dec(x_4);
x_8 = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0_spec__0_spec__0(x_2, x_6, x_7);
return x_8;
}
}
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_9 = lean_ctor_get(x_1, 0);
x_10 = lean_unsigned_to_nat(0u);
x_11 = lean_array_get_size(x_9);
x_12 = lean_nat_dec_lt(x_10, x_11);
if (x_12 == 0)
{
lean_dec(x_11);
return x_12;
}
else
{
if (x_12 == 0)
{
lean_dec(x_11);
return x_12;
}
else
{
size_t x_13; size_t x_14; uint8_t x_15; 
x_13 = 0;
x_14 = lean_usize_of_nat(x_11);
lean_dec(x_11);
x_15 = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0_spec__0_spec__1(x_9, x_13, x_14);
return x_15;
}
}
}
}
}
LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_1, 1);
x_4 = l_Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0_spec__0(x_2);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; uint8_t x_7; 
x_5 = lean_unsigned_to_nat(0u);
x_6 = lean_array_get_size(x_3);
x_7 = lean_nat_dec_lt(x_5, x_6);
if (x_7 == 0)
{
lean_dec(x_6);
return x_4;
}
else
{
if (x_7 == 0)
{
lean_dec(x_6);
return x_4;
}
else
{
size_t x_8; size_t x_9; uint8_t x_10; 
x_8 = 0;
x_9 = lean_usize_of_nat(x_6);
lean_dec(x_6);
x_10 = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0_spec__0_spec__1(x_3, x_8, x_9);
return x_10;
}
}
}
else
{
return x_4;
}
}
}
LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4_spec__4_spec__4(uint8_t x_1, lean_object* x_2, size_t x_3, size_t x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_eq(x_3, x_4);
if (x_5 == 0)
{
lean_object* x_6; uint8_t x_7; 
x_6 = lean_array_uget(x_2, x_3);
x_7 = l_Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4_spec__4(x_1, x_6);
lean_dec(x_6);
if (x_7 == 0)
{
size_t x_8; size_t x_9; 
x_8 = 1;
x_9 = lean_usize_add(x_3, x_8);
x_3 = x_9;
goto _start;
}
else
{
return x_7;
}
}
else
{
uint8_t x_11; 
x_11 = 0;
return x_11;
}
}
}
LEAN_EXPORT uint8_t l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4_spec__4_spec__5(uint8_t x_1, lean_object* x_2, size_t x_3, size_t x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_eq(x_3, x_4);
if (x_5 == 0)
{
lean_object* x_6; uint8_t x_7; uint8_t x_8; 
x_6 = lean_array_uget(x_2, x_3);
x_7 = lean_ctor_get_uint8(x_6, sizeof(void*)*5 + 1);
lean_dec(x_6);
x_8 = 1;
if (x_7 == 2)
{
return x_8;
}
else
{
if (x_1 == 0)
{
size_t x_9; size_t x_10; 
x_9 = 1;
x_10 = lean_usize_add(x_3, x_9);
x_3 = x_10;
goto _start;
}
else
{
return x_8;
}
}
}
else
{
uint8_t x_12; 
x_12 = 0;
return x_12;
}
}
}
LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4_spec__4(uint8_t x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; 
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_unsigned_to_nat(0u);
x_5 = lean_array_get_size(x_3);
x_6 = lean_nat_dec_lt(x_4, x_5);
if (x_6 == 0)
{
lean_dec(x_5);
return x_6;
}
else
{
if (x_6 == 0)
{
lean_dec(x_5);
return x_6;
}
else
{
size_t x_7; size_t x_8; uint8_t x_9; 
x_7 = 0;
x_8 = lean_usize_of_nat(x_5);
lean_dec(x_5);
x_9 = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4_spec__4_spec__4(x_1, x_3, x_7, x_8);
return x_9;
}
}
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; 
x_10 = lean_ctor_get(x_2, 0);
x_11 = lean_unsigned_to_nat(0u);
x_12 = lean_array_get_size(x_10);
x_13 = lean_nat_dec_lt(x_11, x_12);
if (x_13 == 0)
{
lean_dec(x_12);
return x_13;
}
else
{
if (x_13 == 0)
{
lean_dec(x_12);
return x_13;
}
else
{
size_t x_14; size_t x_15; uint8_t x_16; 
x_14 = 0;
x_15 = lean_usize_of_nat(x_12);
lean_dec(x_12);
x_16 = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4_spec__4_spec__5(x_1, x_10, x_14, x_15);
return x_16;
}
}
}
}
}
LEAN_EXPORT uint8_t l_Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4(uint8_t x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; uint8_t x_5; 
x_3 = lean_ctor_get(x_2, 0);
x_4 = lean_ctor_get(x_2, 1);
x_5 = l_Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4_spec__4(x_1, x_3);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; uint8_t x_8; 
x_6 = lean_unsigned_to_nat(0u);
x_7 = lean_array_get_size(x_4);
x_8 = lean_nat_dec_lt(x_6, x_7);
if (x_8 == 0)
{
lean_dec(x_7);
return x_5;
}
else
{
if (x_8 == 0)
{
lean_dec(x_7);
return x_5;
}
else
{
size_t x_9; size_t x_10; uint8_t x_11; 
x_9 = 0;
x_10 = lean_usize_of_nat(x_7);
lean_dec(x_7);
x_11 = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4_spec__4_spec__5(x_1, x_4, x_9, x_10);
return x_11;
}
}
}
else
{
return x_5;
}
}
}
LEAN_EXPORT uint8_t l_Lean_MessageLog_hasErrors(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; uint8_t x_4; 
x_2 = lean_ctor_get(x_1, 0);
x_3 = lean_ctor_get(x_1, 1);
x_4 = l_Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0(x_2);
if (x_4 == 0)
{
uint8_t x_5; 
x_5 = l_Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4(x_4, x_3);
return x_5;
}
else
{
return x_4;
}
}
}
LEAN_EXPORT lean_object* l_Lean_MessageLog_hasErrors___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Lean_MessageLog_hasErrors(x_1);
lean_dec_ref(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
size_t x_4; size_t x_5; uint8_t x_6; lean_object* x_7; 
x_4 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_5 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_6 = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0_spec__0_spec__0(x_1, x_4, x_5);
lean_dec_ref(x_1);
x_7 = lean_box(x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4_spec__4_spec__4___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; 
x_5 = lean_unbox(x_1);
x_6 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_7 = lean_unbox_usize(x_4);
lean_dec(x_4);
x_8 = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4_spec__4_spec__4(x_5, x_2, x_6, x_7);
lean_dec_ref(x_2);
x_9 = lean_box(x_8);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0(x_1);
lean_dec_ref(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; uint8_t x_4; lean_object* x_5; 
x_3 = lean_unbox(x_1);
x_4 = l_Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4(x_3, x_2);
lean_dec_ref(x_2);
x_5 = lean_box(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0_spec__0_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
size_t x_4; size_t x_5; uint8_t x_6; lean_object* x_7; 
x_4 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_5 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_6 = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0_spec__0_spec__1(x_1, x_4, x_5);
lean_dec_ref(x_1);
x_7 = lean_box(x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4_spec__4_spec__5___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; size_t x_6; size_t x_7; uint8_t x_8; lean_object* x_9; 
x_5 = lean_unbox(x_1);
x_6 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_7 = lean_unbox_usize(x_4);
lean_dec(x_4);
x_8 = l___private_Init_Data_Array_Basic_0__Array_anyMUnsafe_any___at___00Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4_spec__4_spec__5(x_5, x_2, x_6, x_7);
lean_dec_ref(x_2);
x_9 = lean_box(x_8);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0_spec__0___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__0_spec__0(x_1);
lean_dec_ref(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4_spec__4___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; uint8_t x_4; lean_object* x_5; 
x_3 = lean_unbox(x_1);
x_4 = l_Lean_PersistentArray_anyMAux___at___00Lean_PersistentArray_anyM___at___00Lean_MessageLog_hasErrors_spec__4_spec__4(x_3, x_2);
lean_dec_ref(x_2);
x_5 = lean_box(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageLog_markAllReported(lean_object* x_1) {
_start:
{
uint8_t x_2; 
x_2 = !lean_is_exclusive(x_1);
if (x_2 == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_ctor_get(x_1, 1);
x_5 = l_Lean_PersistentArray_append___redArg(x_3, x_4);
lean_dec_ref(x_4);
x_6 = l_Lean_MessageLog_empty___closed__2;
lean_ctor_set(x_1, 1, x_6);
lean_ctor_set(x_1, 0, x_5);
return x_1;
}
else
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_7 = lean_ctor_get(x_1, 0);
x_8 = lean_ctor_get(x_1, 1);
x_9 = lean_ctor_get(x_1, 2);
lean_inc(x_9);
lean_inc(x_8);
lean_inc(x_7);
lean_dec(x_1);
x_10 = l_Lean_PersistentArray_append___redArg(x_7, x_8);
lean_dec_ref(x_8);
x_11 = l_Lean_MessageLog_empty___closed__2;
x_12 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_12, 0, x_10);
lean_ctor_set(x_12, 1, x_11);
lean_ctor_set(x_12, 2, x_9);
return x_12;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToWarnings_spec__0_spec__0_spec__0(size_t x_1, size_t x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = lean_usize_dec_lt(x_2, x_1);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; 
x_5 = lean_array_uget(x_3, x_2);
x_6 = lean_unsigned_to_nat(0u);
x_7 = lean_array_uset(x_3, x_2, x_6);
x_8 = l_Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToWarnings_spec__0_spec__0(x_5);
x_9 = 1;
x_10 = lean_usize_add(x_2, x_9);
x_11 = lean_array_uset(x_7, x_2, x_8);
x_2 = x_10;
x_3 = x_11;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToWarnings_spec__0_spec__0_spec__1(size_t x_1, size_t x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = lean_usize_dec_lt(x_2, x_1);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; uint8_t x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_5 = lean_array_uget(x_3, x_2);
x_6 = lean_ctor_get(x_5, 0);
lean_inc_ref(x_6);
x_7 = lean_ctor_get(x_5, 1);
lean_inc_ref(x_7);
x_8 = lean_ctor_get(x_5, 2);
lean_inc(x_8);
x_9 = lean_ctor_get_uint8(x_5, sizeof(void*)*5);
x_10 = lean_ctor_get_uint8(x_5, sizeof(void*)*5 + 1);
x_11 = lean_ctor_get_uint8(x_5, sizeof(void*)*5 + 2);
x_12 = lean_ctor_get(x_5, 3);
lean_inc_ref(x_12);
x_13 = lean_ctor_get(x_5, 4);
lean_inc(x_13);
x_14 = lean_unsigned_to_nat(0u);
x_15 = lean_array_uset(x_3, x_2, x_14);
if (x_10 == 2)
{
uint8_t x_22; 
x_22 = !lean_is_exclusive(x_5);
if (x_22 == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; 
x_23 = lean_ctor_get(x_5, 4);
lean_dec(x_23);
x_24 = lean_ctor_get(x_5, 3);
lean_dec(x_24);
x_25 = lean_ctor_get(x_5, 2);
lean_dec(x_25);
x_26 = lean_ctor_get(x_5, 1);
lean_dec(x_26);
x_27 = lean_ctor_get(x_5, 0);
lean_dec(x_27);
x_28 = 1;
lean_ctor_set_uint8(x_5, sizeof(void*)*5 + 1, x_28);
x_16 = x_5;
goto block_21;
}
else
{
uint8_t x_29; lean_object* x_30; 
lean_dec(x_5);
x_29 = 1;
x_30 = lean_alloc_ctor(0, 5, 3);
lean_ctor_set(x_30, 0, x_6);
lean_ctor_set(x_30, 1, x_7);
lean_ctor_set(x_30, 2, x_8);
lean_ctor_set(x_30, 3, x_12);
lean_ctor_set(x_30, 4, x_13);
lean_ctor_set_uint8(x_30, sizeof(void*)*5, x_9);
lean_ctor_set_uint8(x_30, sizeof(void*)*5 + 1, x_29);
lean_ctor_set_uint8(x_30, sizeof(void*)*5 + 2, x_11);
x_16 = x_30;
goto block_21;
}
}
else
{
lean_dec(x_13);
lean_dec_ref(x_12);
lean_dec(x_8);
lean_dec_ref(x_7);
lean_dec_ref(x_6);
x_16 = x_5;
goto block_21;
}
block_21:
{
size_t x_17; size_t x_18; lean_object* x_19; 
x_17 = 1;
x_18 = lean_usize_add(x_2, x_17);
x_19 = lean_array_uset(x_15, x_2, x_16);
x_2 = x_18;
x_3 = x_19;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToWarnings_spec__0_spec__0(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
uint8_t x_2; 
x_2 = !lean_is_exclusive(x_1);
if (x_2 == 0)
{
lean_object* x_3; size_t x_4; size_t x_5; lean_object* x_6; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_array_size(x_3);
x_5 = 0;
x_6 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToWarnings_spec__0_spec__0_spec__0(x_4, x_5, x_3);
lean_ctor_set(x_1, 0, x_6);
return x_1;
}
else
{
lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; lean_object* x_11; 
x_7 = lean_ctor_get(x_1, 0);
lean_inc(x_7);
lean_dec(x_1);
x_8 = lean_array_size(x_7);
x_9 = 0;
x_10 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToWarnings_spec__0_spec__0_spec__0(x_8, x_9, x_7);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_1);
if (x_12 == 0)
{
lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; 
x_13 = lean_ctor_get(x_1, 0);
x_14 = lean_array_size(x_13);
x_15 = 0;
x_16 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToWarnings_spec__0_spec__0_spec__1(x_14, x_15, x_13);
lean_ctor_set(x_1, 0, x_16);
return x_1;
}
else
{
lean_object* x_17; size_t x_18; size_t x_19; lean_object* x_20; lean_object* x_21; 
x_17 = lean_ctor_get(x_1, 0);
lean_inc(x_17);
lean_dec(x_1);
x_18 = lean_array_size(x_17);
x_19 = 0;
x_20 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToWarnings_spec__0_spec__0_spec__1(x_18, x_19, x_17);
x_21 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_21, 0, x_20);
return x_21;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToWarnings_spec__0(lean_object* x_1) {
_start:
{
uint8_t x_2; 
x_2 = !lean_is_exclusive(x_1);
if (x_2 == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; size_t x_6; size_t x_7; lean_object* x_8; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_ctor_get(x_1, 1);
x_5 = l_Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToWarnings_spec__0_spec__0(x_3);
x_6 = lean_array_size(x_4);
x_7 = 0;
x_8 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToWarnings_spec__0_spec__0_spec__1(x_6, x_7, x_4);
lean_ctor_set(x_1, 1, x_8);
lean_ctor_set(x_1, 0, x_5);
return x_1;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; size_t x_12; lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; lean_object* x_17; lean_object* x_18; 
x_9 = lean_ctor_get(x_1, 0);
x_10 = lean_ctor_get(x_1, 1);
x_11 = lean_ctor_get(x_1, 2);
x_12 = lean_ctor_get_usize(x_1, 4);
x_13 = lean_ctor_get(x_1, 3);
lean_inc(x_13);
lean_inc(x_11);
lean_inc(x_10);
lean_inc(x_9);
lean_dec(x_1);
x_14 = l_Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToWarnings_spec__0_spec__0(x_9);
x_15 = lean_array_size(x_10);
x_16 = 0;
x_17 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToWarnings_spec__0_spec__0_spec__1(x_15, x_16, x_10);
x_18 = lean_alloc_ctor(0, 4, sizeof(size_t)*1);
lean_ctor_set(x_18, 0, x_14);
lean_ctor_set(x_18, 1, x_17);
lean_ctor_set(x_18, 2, x_11);
lean_ctor_set(x_18, 3, x_13);
lean_ctor_set_usize(x_18, 4, x_12);
return x_18;
}
}
}
LEAN_EXPORT lean_object* l_Lean_MessageLog_errorsToWarnings(lean_object* x_1) {
_start:
{
uint8_t x_2; 
x_2 = !lean_is_exclusive(x_1);
if (x_2 == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_3 = lean_ctor_get(x_1, 1);
x_4 = lean_ctor_get(x_1, 2);
lean_dec(x_4);
x_5 = lean_ctor_get(x_1, 0);
lean_dec(x_5);
x_6 = l_Lean_MessageLog_empty___closed__2;
x_7 = l_Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToWarnings_spec__0(x_3);
x_8 = l_Lean_instInhabitedMessageLog_default___closed__1;
lean_ctor_set(x_1, 2, x_8);
lean_ctor_set(x_1, 1, x_7);
lean_ctor_set(x_1, 0, x_6);
return x_1;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_9 = lean_ctor_get(x_1, 1);
lean_inc(x_9);
lean_dec(x_1);
x_10 = l_Lean_MessageLog_empty___closed__2;
x_11 = l_Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToWarnings_spec__0(x_9);
x_12 = l_Lean_instInhabitedMessageLog_default___closed__1;
x_13 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_13, 0, x_10);
lean_ctor_set(x_13, 1, x_11);
lean_ctor_set(x_13, 2, x_12);
return x_13;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToWarnings_spec__0_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
size_t x_4; size_t x_5; lean_object* x_6; 
x_4 = lean_unbox_usize(x_1);
lean_dec(x_1);
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToWarnings_spec__0_spec__0_spec__0(x_4, x_5, x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToWarnings_spec__0_spec__0_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
size_t x_4; size_t x_5; lean_object* x_6; 
x_4 = lean_unbox_usize(x_1);
lean_dec(x_1);
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToWarnings_spec__0_spec__0_spec__1(x_4, x_5, x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToInfos_spec__0_spec__0_spec__0(size_t x_1, size_t x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = lean_usize_dec_lt(x_2, x_1);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; size_t x_9; size_t x_10; lean_object* x_11; 
x_5 = lean_array_uget(x_3, x_2);
x_6 = lean_unsigned_to_nat(0u);
x_7 = lean_array_uset(x_3, x_2, x_6);
x_8 = l_Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToInfos_spec__0_spec__0(x_5);
x_9 = 1;
x_10 = lean_usize_add(x_2, x_9);
x_11 = lean_array_uset(x_7, x_2, x_8);
x_2 = x_10;
x_3 = x_11;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToInfos_spec__0_spec__0_spec__1(size_t x_1, size_t x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = lean_usize_dec_lt(x_2, x_1);
if (x_4 == 0)
{
return x_3;
}
else
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; uint8_t x_10; uint8_t x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_5 = lean_array_uget(x_3, x_2);
x_6 = lean_ctor_get(x_5, 0);
lean_inc_ref(x_6);
x_7 = lean_ctor_get(x_5, 1);
lean_inc_ref(x_7);
x_8 = lean_ctor_get(x_5, 2);
lean_inc(x_8);
x_9 = lean_ctor_get_uint8(x_5, sizeof(void*)*5);
x_10 = lean_ctor_get_uint8(x_5, sizeof(void*)*5 + 1);
x_11 = lean_ctor_get_uint8(x_5, sizeof(void*)*5 + 2);
x_12 = lean_ctor_get(x_5, 3);
lean_inc_ref(x_12);
x_13 = lean_ctor_get(x_5, 4);
lean_inc(x_13);
x_14 = lean_unsigned_to_nat(0u);
x_15 = lean_array_uset(x_3, x_2, x_14);
if (x_10 == 2)
{
uint8_t x_22; 
x_22 = !lean_is_exclusive(x_5);
if (x_22 == 0)
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; 
x_23 = lean_ctor_get(x_5, 4);
lean_dec(x_23);
x_24 = lean_ctor_get(x_5, 3);
lean_dec(x_24);
x_25 = lean_ctor_get(x_5, 2);
lean_dec(x_25);
x_26 = lean_ctor_get(x_5, 1);
lean_dec(x_26);
x_27 = lean_ctor_get(x_5, 0);
lean_dec(x_27);
x_28 = 0;
lean_ctor_set_uint8(x_5, sizeof(void*)*5 + 1, x_28);
x_16 = x_5;
goto block_21;
}
else
{
uint8_t x_29; lean_object* x_30; 
lean_dec(x_5);
x_29 = 0;
x_30 = lean_alloc_ctor(0, 5, 3);
lean_ctor_set(x_30, 0, x_6);
lean_ctor_set(x_30, 1, x_7);
lean_ctor_set(x_30, 2, x_8);
lean_ctor_set(x_30, 3, x_12);
lean_ctor_set(x_30, 4, x_13);
lean_ctor_set_uint8(x_30, sizeof(void*)*5, x_9);
lean_ctor_set_uint8(x_30, sizeof(void*)*5 + 1, x_29);
lean_ctor_set_uint8(x_30, sizeof(void*)*5 + 2, x_11);
x_16 = x_30;
goto block_21;
}
}
else
{
lean_dec(x_13);
lean_dec_ref(x_12);
lean_dec(x_8);
lean_dec_ref(x_7);
lean_dec_ref(x_6);
x_16 = x_5;
goto block_21;
}
block_21:
{
size_t x_17; size_t x_18; lean_object* x_19; 
x_17 = 1;
x_18 = lean_usize_add(x_2, x_17);
x_19 = lean_array_uset(x_15, x_2, x_16);
x_2 = x_18;
x_3 = x_19;
goto _start;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToInfos_spec__0_spec__0(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
uint8_t x_2; 
x_2 = !lean_is_exclusive(x_1);
if (x_2 == 0)
{
lean_object* x_3; size_t x_4; size_t x_5; lean_object* x_6; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_array_size(x_3);
x_5 = 0;
x_6 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToInfos_spec__0_spec__0_spec__0(x_4, x_5, x_3);
lean_ctor_set(x_1, 0, x_6);
return x_1;
}
else
{
lean_object* x_7; size_t x_8; size_t x_9; lean_object* x_10; lean_object* x_11; 
x_7 = lean_ctor_get(x_1, 0);
lean_inc(x_7);
lean_dec(x_1);
x_8 = lean_array_size(x_7);
x_9 = 0;
x_10 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToInfos_spec__0_spec__0_spec__0(x_8, x_9, x_7);
x_11 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_11, 0, x_10);
return x_11;
}
}
else
{
uint8_t x_12; 
x_12 = !lean_is_exclusive(x_1);
if (x_12 == 0)
{
lean_object* x_13; size_t x_14; size_t x_15; lean_object* x_16; 
x_13 = lean_ctor_get(x_1, 0);
x_14 = lean_array_size(x_13);
x_15 = 0;
x_16 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToInfos_spec__0_spec__0_spec__1(x_14, x_15, x_13);
lean_ctor_set(x_1, 0, x_16);
return x_1;
}
else
{
lean_object* x_17; size_t x_18; size_t x_19; lean_object* x_20; lean_object* x_21; 
x_17 = lean_ctor_get(x_1, 0);
lean_inc(x_17);
lean_dec(x_1);
x_18 = lean_array_size(x_17);
x_19 = 0;
x_20 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToInfos_spec__0_spec__0_spec__1(x_18, x_19, x_17);
x_21 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_21, 0, x_20);
return x_21;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToInfos_spec__0(lean_object* x_1) {
_start:
{
uint8_t x_2; 
x_2 = !lean_is_exclusive(x_1);
if (x_2 == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; size_t x_6; size_t x_7; lean_object* x_8; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_ctor_get(x_1, 1);
x_5 = l_Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToInfos_spec__0_spec__0(x_3);
x_6 = lean_array_size(x_4);
x_7 = 0;
x_8 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToInfos_spec__0_spec__0_spec__1(x_6, x_7, x_4);
lean_ctor_set(x_1, 1, x_8);
lean_ctor_set(x_1, 0, x_5);
return x_1;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; size_t x_12; lean_object* x_13; lean_object* x_14; size_t x_15; size_t x_16; lean_object* x_17; lean_object* x_18; 
x_9 = lean_ctor_get(x_1, 0);
x_10 = lean_ctor_get(x_1, 1);
x_11 = lean_ctor_get(x_1, 2);
x_12 = lean_ctor_get_usize(x_1, 4);
x_13 = lean_ctor_get(x_1, 3);
lean_inc(x_13);
lean_inc(x_11);
lean_inc(x_10);
lean_inc(x_9);
lean_dec(x_1);
x_14 = l_Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToInfos_spec__0_spec__0(x_9);
x_15 = lean_array_size(x_10);
x_16 = 0;
x_17 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToInfos_spec__0_spec__0_spec__1(x_15, x_16, x_10);
x_18 = lean_alloc_ctor(0, 4, sizeof(size_t)*1);
lean_ctor_set(x_18, 0, x_14);
lean_ctor_set(x_18, 1, x_17);
lean_ctor_set(x_18, 2, x_11);
lean_ctor_set(x_18, 3, x_13);
lean_ctor_set_usize(x_18, 4, x_12);
return x_18;
}
}
}
LEAN_EXPORT lean_object* l_Lean_MessageLog_errorsToInfos(lean_object* x_1) {
_start:
{
uint8_t x_2; 
x_2 = !lean_is_exclusive(x_1);
if (x_2 == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_3 = lean_ctor_get(x_1, 1);
x_4 = lean_ctor_get(x_1, 2);
lean_dec(x_4);
x_5 = lean_ctor_get(x_1, 0);
lean_dec(x_5);
x_6 = l_Lean_MessageLog_empty___closed__2;
x_7 = l_Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToInfos_spec__0(x_3);
x_8 = l_Lean_instInhabitedMessageLog_default___closed__1;
lean_ctor_set(x_1, 2, x_8);
lean_ctor_set(x_1, 1, x_7);
lean_ctor_set(x_1, 0, x_6);
return x_1;
}
else
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_9 = lean_ctor_get(x_1, 1);
lean_inc(x_9);
lean_dec(x_1);
x_10 = l_Lean_MessageLog_empty___closed__2;
x_11 = l_Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToInfos_spec__0(x_9);
x_12 = l_Lean_instInhabitedMessageLog_default___closed__1;
x_13 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_13, 0, x_10);
lean_ctor_set(x_13, 1, x_11);
lean_ctor_set(x_13, 2, x_12);
return x_13;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToInfos_spec__0_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
size_t x_4; size_t x_5; lean_object* x_6; 
x_4 = lean_unbox_usize(x_1);
lean_dec(x_1);
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToInfos_spec__0_spec__0_spec__0(x_4, x_5, x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToInfos_spec__0_spec__0_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
size_t x_4; size_t x_5; lean_object* x_6; 
x_4 = lean_unbox_usize(x_1);
lean_dec(x_1);
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = l___private_Init_Data_Array_Basic_0__Array_mapMUnsafe_map___at___00Lean_PersistentArray_mapMAux___at___00Lean_PersistentArray_mapM___at___00Lean_MessageLog_errorsToInfos_spec__0_spec__0_spec__1(x_4, x_5, x_3);
return x_6;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0_spec__0_spec__1(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; uint8_t x_10; 
x_10 = lean_usize_dec_eq(x_2, x_3);
if (x_10 == 0)
{
lean_object* x_11; uint8_t x_12; 
x_11 = lean_array_uget(x_1, x_2);
x_12 = lean_ctor_get_uint8(x_11, sizeof(void*)*5 + 1);
if (x_12 == 0)
{
lean_object* x_13; 
x_13 = l_Lean_PersistentArray_push___redArg(x_4, x_11);
x_5 = x_13;
goto block_9;
}
else
{
lean_dec(x_11);
x_5 = x_4;
goto block_9;
}
}
else
{
return x_4;
}
block_9:
{
size_t x_6; size_t x_7; 
x_6 = 1;
x_7 = lean_usize_add(x_2, x_6);
x_2 = x_7;
x_4 = x_5;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; uint8_t x_6; 
x_3 = lean_ctor_get(x_1, 0);
x_4 = lean_unsigned_to_nat(0u);
x_5 = lean_array_get_size(x_3);
x_6 = lean_nat_dec_lt(x_4, x_5);
if (x_6 == 0)
{
lean_dec(x_5);
return x_2;
}
else
{
uint8_t x_7; 
x_7 = lean_nat_dec_le(x_5, x_5);
if (x_7 == 0)
{
lean_dec(x_5);
return x_2;
}
else
{
size_t x_8; size_t x_9; lean_object* x_10; 
x_8 = 0;
x_9 = lean_usize_of_nat(x_5);
lean_dec(x_5);
x_10 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0_spec__0_spec__0(x_3, x_8, x_9, x_2);
return x_10;
}
}
}
else
{
lean_object* x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; 
x_11 = lean_ctor_get(x_1, 0);
x_12 = lean_unsigned_to_nat(0u);
x_13 = lean_array_get_size(x_11);
x_14 = lean_nat_dec_lt(x_12, x_13);
if (x_14 == 0)
{
lean_dec(x_13);
return x_2;
}
else
{
uint8_t x_15; 
x_15 = lean_nat_dec_le(x_13, x_13);
if (x_15 == 0)
{
lean_dec(x_13);
return x_2;
}
else
{
size_t x_16; size_t x_17; lean_object* x_18; 
x_16 = 0;
x_17 = lean_usize_of_nat(x_13);
lean_dec(x_13);
x_18 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0_spec__0_spec__1(x_11, x_16, x_17, x_2);
return x_18;
}
}
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0_spec__0_spec__0(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; 
x_5 = lean_usize_dec_eq(x_2, x_3);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; size_t x_8; size_t x_9; 
x_6 = lean_array_uget(x_1, x_2);
x_7 = l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0_spec__0(x_6, x_4);
lean_dec(x_6);
x_8 = 1;
x_9 = lean_usize_add(x_2, x_8);
x_2 = x_9;
x_4 = x_7;
goto _start;
}
else
{
return x_4;
}
}
}
static lean_object* _init_l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instInhabitedPersistentArrayNode_default(lean_box(0));
return x_1;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0(lean_object* x_1, size_t x_2, size_t x_3, lean_object* x_4) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_5; lean_object* x_6; size_t x_7; lean_object* x_8; lean_object* x_9; size_t x_10; size_t x_11; size_t x_12; size_t x_13; size_t x_14; size_t x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; uint8_t x_20; 
x_5 = lean_ctor_get(x_1, 0);
x_6 = l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0___closed__0;
x_7 = lean_usize_shift_right(x_2, x_3);
x_8 = lean_usize_to_nat(x_7);
x_9 = lean_array_get_borrowed(x_6, x_5, x_8);
x_10 = 1;
x_11 = lean_usize_shift_left(x_10, x_3);
x_12 = lean_usize_sub(x_11, x_10);
x_13 = lean_usize_land(x_2, x_12);
x_14 = 5;
x_15 = lean_usize_sub(x_3, x_14);
x_16 = l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0(x_9, x_13, x_15, x_4);
x_17 = lean_unsigned_to_nat(1u);
x_18 = lean_nat_add(x_8, x_17);
lean_dec(x_8);
x_19 = lean_array_get_size(x_5);
x_20 = lean_nat_dec_lt(x_18, x_19);
if (x_20 == 0)
{
lean_dec(x_19);
lean_dec(x_18);
return x_16;
}
else
{
uint8_t x_21; 
x_21 = lean_nat_dec_le(x_19, x_19);
if (x_21 == 0)
{
lean_dec(x_19);
lean_dec(x_18);
return x_16;
}
else
{
size_t x_22; size_t x_23; lean_object* x_24; 
x_22 = lean_usize_of_nat(x_18);
lean_dec(x_18);
x_23 = lean_usize_of_nat(x_19);
lean_dec(x_19);
x_24 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0_spec__0_spec__0(x_5, x_22, x_23, x_16);
return x_24;
}
}
}
else
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; uint8_t x_28; 
x_25 = lean_ctor_get(x_1, 0);
x_26 = lean_usize_to_nat(x_2);
x_27 = lean_array_get_size(x_25);
x_28 = lean_nat_dec_lt(x_26, x_27);
if (x_28 == 0)
{
lean_dec(x_27);
lean_dec(x_26);
return x_4;
}
else
{
uint8_t x_29; 
x_29 = lean_nat_dec_le(x_27, x_27);
if (x_29 == 0)
{
lean_dec(x_27);
lean_dec(x_26);
return x_4;
}
else
{
size_t x_30; size_t x_31; lean_object* x_32; 
x_30 = lean_usize_of_nat(x_26);
lean_dec(x_26);
x_31 = lean_usize_of_nat(x_27);
lean_dec(x_27);
x_32 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0_spec__0_spec__1(x_25, x_30, x_31, x_4);
return x_32;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = lean_unsigned_to_nat(0u);
x_5 = lean_nat_dec_eq(x_3, x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; size_t x_8; lean_object* x_9; uint8_t x_10; 
x_6 = lean_ctor_get(x_1, 0);
x_7 = lean_ctor_get(x_1, 1);
x_8 = lean_ctor_get_usize(x_1, 4);
x_9 = lean_ctor_get(x_1, 3);
x_10 = lean_nat_dec_le(x_9, x_3);
if (x_10 == 0)
{
size_t x_11; lean_object* x_12; lean_object* x_13; uint8_t x_14; 
x_11 = lean_usize_of_nat(x_3);
x_12 = l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0(x_6, x_11, x_8, x_2);
x_13 = lean_array_get_size(x_7);
x_14 = lean_nat_dec_lt(x_4, x_13);
if (x_14 == 0)
{
lean_dec(x_13);
return x_12;
}
else
{
uint8_t x_15; 
x_15 = lean_nat_dec_le(x_13, x_13);
if (x_15 == 0)
{
lean_dec(x_13);
return x_12;
}
else
{
size_t x_16; size_t x_17; lean_object* x_18; 
x_16 = 0;
x_17 = lean_usize_of_nat(x_13);
lean_dec(x_13);
x_18 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0_spec__0_spec__1(x_7, x_16, x_17, x_12);
return x_18;
}
}
}
else
{
lean_object* x_19; lean_object* x_20; uint8_t x_21; 
x_19 = lean_nat_sub(x_3, x_9);
x_20 = lean_array_get_size(x_7);
x_21 = lean_nat_dec_lt(x_19, x_20);
if (x_21 == 0)
{
lean_dec(x_20);
lean_dec(x_19);
return x_2;
}
else
{
uint8_t x_22; 
x_22 = lean_nat_dec_le(x_20, x_20);
if (x_22 == 0)
{
lean_dec(x_20);
lean_dec(x_19);
return x_2;
}
else
{
size_t x_23; size_t x_24; lean_object* x_25; 
x_23 = lean_usize_of_nat(x_19);
lean_dec(x_19);
x_24 = lean_usize_of_nat(x_20);
lean_dec(x_20);
x_25 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0_spec__0_spec__1(x_7, x_23, x_24, x_2);
return x_25;
}
}
}
}
else
{
lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; uint8_t x_30; 
x_26 = lean_ctor_get(x_1, 0);
x_27 = lean_ctor_get(x_1, 1);
x_28 = l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0_spec__0(x_26, x_2);
x_29 = lean_array_get_size(x_27);
x_30 = lean_nat_dec_lt(x_4, x_29);
if (x_30 == 0)
{
lean_dec(x_29);
return x_28;
}
else
{
uint8_t x_31; 
x_31 = lean_nat_dec_le(x_29, x_29);
if (x_31 == 0)
{
lean_dec(x_29);
return x_28;
}
else
{
size_t x_32; size_t x_33; lean_object* x_34; 
x_32 = 0;
x_33 = lean_usize_of_nat(x_29);
lean_dec(x_29);
x_34 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0_spec__0_spec__1(x_27, x_32, x_33, x_28);
return x_34;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_MessageLog_getInfoMessages(lean_object* x_1) {
_start:
{
uint8_t x_2; 
x_2 = !lean_is_exclusive(x_1);
if (x_2 == 0)
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_3 = lean_ctor_get(x_1, 1);
x_4 = lean_ctor_get(x_1, 2);
lean_dec(x_4);
x_5 = lean_ctor_get(x_1, 0);
lean_dec(x_5);
x_6 = lean_unsigned_to_nat(0u);
x_7 = l_Lean_MessageLog_empty___closed__2;
x_8 = l_Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0(x_3, x_7, x_6);
lean_dec_ref(x_3);
x_9 = l_Lean_instInhabitedMessageLog_default___closed__1;
lean_ctor_set(x_1, 2, x_9);
lean_ctor_set(x_1, 1, x_8);
lean_ctor_set(x_1, 0, x_7);
return x_1;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_10 = lean_ctor_get(x_1, 1);
lean_inc(x_10);
lean_dec(x_1);
x_11 = lean_unsigned_to_nat(0u);
x_12 = l_Lean_MessageLog_empty___closed__2;
x_13 = l_Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0(x_10, x_12, x_11);
lean_dec_ref(x_10);
x_14 = l_Lean_instInhabitedMessageLog_default___closed__1;
x_15 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_15, 0, x_12);
lean_ctor_set(x_15, 1, x_13);
lean_ctor_set(x_15, 2, x_14);
return x_15;
}
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; lean_object* x_7; 
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_7 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0_spec__0_spec__0(x_1, x_5, x_6, x_4);
lean_dec_ref(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0_spec__0_spec__1___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; lean_object* x_7; 
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_7 = l___private_Init_Data_Array_Basic_0__Array_foldlMUnsafe_fold___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0_spec__0_spec__1(x_1, x_5, x_6, x_4);
lean_dec_ref(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlMAux___at___00__private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0_spec__0(x_1, x_2);
lean_dec_ref(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
size_t x_5; size_t x_6; lean_object* x_7; 
x_5 = lean_unbox_usize(x_2);
lean_dec(x_2);
x_6 = lean_unbox_usize(x_3);
lean_dec(x_3);
x_7 = l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0(x_1, x_5, x_6, x_4);
lean_dec_ref(x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0(x_1, x_2, x_3);
lean_dec(x_3);
lean_dec_ref(x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageLog_forM___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_4);
lean_dec_ref(x_2);
x_5 = l_Lean_PersistentArray_forM___redArg(x_1, x_4, x_3);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageLog_forM(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_MessageLog_forM___redArg(x_2, x_3, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageLog_toList(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_ctor_get(x_1, 1);
x_3 = l_Lean_PersistentArray_toList___redArg(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageLog_toList___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_MessageLog_toList(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageLog_toArray(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_ctor_get(x_1, 1);
x_3 = l_Lean_PersistentArray_toArray___redArg(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageLog_toArray___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_MessageLog_toArray(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_MessageData_nestD(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_unsigned_to_nat(2u);
x_3 = lean_alloc_ctor(5, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_indentD(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_2 = l_Lean_MessageData_ofList___closed__6;
x_3 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
x_4 = l_Lean_MessageData_nestD(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_indentExpr(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_MessageData_ofExpr(x_1);
x_3 = l_Lean_indentD(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Message_0__Lean_MessageData_formatExpensively(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; 
x_4 = lean_ctor_get(x_1, 0);
x_5 = lean_ctor_get(x_1, 1);
x_6 = lean_ctor_get(x_1, 2);
x_7 = lean_ctor_get(x_1, 3);
x_8 = lean_ctor_get(x_1, 4);
x_9 = lean_ctor_get(x_1, 5);
lean_inc(x_9);
lean_inc(x_8);
x_10 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_10, 0, x_8);
lean_ctor_set(x_10, 1, x_9);
x_11 = lean_alloc_ctor(4, 2, 0);
lean_ctor_set(x_11, 0, x_10);
lean_ctor_set(x_11, 1, x_2);
lean_inc(x_7);
lean_inc_ref(x_6);
lean_inc_ref(x_5);
lean_inc_ref(x_4);
x_12 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_12, 0, x_4);
lean_ctor_set(x_12, 1, x_5);
lean_ctor_set(x_12, 2, x_6);
lean_ctor_set(x_12, 3, x_7);
x_13 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_13, 0, x_12);
x_14 = l_Lean_MessageData_format(x_11, x_13);
x_15 = l_Lean_MessageData_toString___closed__0;
x_16 = lean_unsigned_to_nat(0u);
x_17 = l_Std_Format_pretty(x_14, x_15, x_16, x_16);
return x_17;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Message_0__Lean_MessageData_formatExpensively___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l___private_Lean_Message_0__Lean_MessageData_formatExpensively(x_1, x_2);
lean_dec_ref(x_1);
return x_4;
}
}
LEAN_EXPORT uint8_t l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00Lean_inlineExpr_spec__0_spec__0_spec__0___redArg(lean_object* x_1, uint8_t x_2, lean_object* x_3, uint8_t x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_5 = lean_ctor_get(x_1, 0);
x_6 = lean_ctor_get(x_1, 1);
x_7 = lean_ctor_get(x_1, 2);
x_8 = lean_nat_sub(x_7, x_6);
x_9 = lean_nat_dec_eq(x_3, x_8);
lean_dec(x_8);
if (x_9 == 0)
{
lean_object* x_10; uint32_t x_11; uint32_t x_12; uint8_t x_13; 
x_10 = lean_nat_add(x_6, x_3);
lean_dec(x_3);
x_11 = lean_string_utf8_get_fast(x_5, x_10);
x_12 = 10;
x_13 = lean_uint32_dec_eq(x_11, x_12);
if (x_13 == 0)
{
lean_object* x_14; lean_object* x_15; 
x_14 = lean_string_utf8_next_fast(x_5, x_10);
lean_dec(x_10);
x_15 = lean_nat_sub(x_14, x_6);
lean_dec(x_14);
{
lean_object* _tmp_2 = x_15;
uint8_t _tmp_3 = x_2;
x_3 = _tmp_2;
x_4 = _tmp_3;
}
goto _start;
}
else
{
lean_dec(x_10);
return x_13;
}
}
else
{
lean_dec(x_3);
return x_4;
}
}
}
LEAN_EXPORT uint8_t l_Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00Lean_inlineExpr_spec__0_spec__0___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; uint8_t x_4; 
x_3 = 0;
x_4 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00Lean_inlineExpr_spec__0_spec__0_spec__0___redArg(x_1, x_3, x_2, x_3);
return x_4;
}
}
LEAN_EXPORT uint8_t l_Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00Lean_inlineExpr_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = l_Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00Lean_inlineExpr_spec__0_spec__0___redArg(x_1, x_3);
return x_4;
}
}
LEAN_EXPORT uint8_t l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00Lean_inlineExpr_spec__0_spec__0_spec__0(lean_object* x_1, uint8_t x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, uint8_t x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
uint8_t x_9; 
x_9 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00Lean_inlineExpr_spec__0_spec__0_spec__0___redArg(x_1, x_2, x_5, x_6);
return x_9;
}
}
LEAN_EXPORT uint8_t l_String_Slice_contains___at___00Lean_inlineExpr_spec__0___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; uint8_t x_3; 
x_2 = lean_unsigned_to_nat(0u);
x_3 = l_Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00Lean_inlineExpr_spec__0_spec__0___redArg(x_1, x_2);
return x_3;
}
}
LEAN_EXPORT uint8_t l_String_Slice_contains___at___00Lean_inlineExpr_spec__0(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; 
x_3 = l_String_Slice_contains___at___00Lean_inlineExpr_spec__0___redArg(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_inlineExpr___lam__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked(" `", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_inlineExpr___lam__0___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_inlineExpr___lam__0___closed__0;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_inlineExpr___lam__0___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_inlineExpr___lam__0___closed__1;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_inlineExpr___lam__0___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("` ", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_inlineExpr___lam__0___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_inlineExpr___lam__0___closed__3;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_inlineExpr___lam__0___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_inlineExpr___lam__0___closed__4;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_inlineExpr___lam__0___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_MessageData_formatAux___closed__3;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_inlineExpr___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_16; uint8_t x_17; 
x_5 = l_Lean_MessageData_ofExpr(x_1);
lean_inc_ref(x_5);
x_6 = l___private_Lean_Message_0__Lean_MessageData_formatExpensively(x_3, x_5);
x_16 = lean_string_length(x_6);
x_17 = lean_nat_dec_lt(x_2, x_16);
lean_dec(x_16);
if (x_17 == 0)
{
lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; 
x_18 = lean_unsigned_to_nat(0u);
x_19 = lean_string_utf8_byte_size(x_6);
x_20 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_20, 0, x_6);
lean_ctor_set(x_20, 1, x_18);
lean_ctor_set(x_20, 2, x_19);
x_21 = l_String_Slice_contains___at___00Lean_inlineExpr_spec__0___redArg(x_20);
lean_dec_ref(x_20);
x_7 = x_21;
goto block_15;
}
else
{
lean_dec_ref(x_6);
x_7 = x_17;
goto block_15;
}
block_15:
{
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = l_Lean_inlineExpr___lam__0___closed__2;
x_9 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set(x_9, 1, x_5);
x_10 = l_Lean_inlineExpr___lam__0___closed__5;
x_11 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_11, 0, x_9);
lean_ctor_set(x_11, 1, x_10);
return x_11;
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_12 = l_Lean_indentD(x_5);
x_13 = l_Lean_inlineExpr___lam__0___closed__6;
x_14 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_14, 0, x_12);
lean_ctor_set(x_14, 1, x_13);
return x_14;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_inlineExpr___lam__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_4 = l_Lean_inlineExpr___lam__0___closed__2;
x_5 = l_Lean_MessageData_ofExpr(x_1);
x_6 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_6, 0, x_4);
lean_ctor_set(x_6, 1, x_5);
x_7 = l_Lean_inlineExpr___lam__0___closed__5;
x_8 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_8, 0, x_6);
lean_ctor_set(x_8, 1, x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_inlineExpr___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_inlineExpr___lam__0(x_1, x_2, x_3);
lean_dec_ref(x_3);
lean_dec(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_inlineExpr___lam__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_inlineExpr___lam__2(x_1, x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_inlineExpr(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
lean_inc_ref(x_1);
x_3 = lean_alloc_closure((void*)(l_Lean_inlineExpr___lam__0___boxed), 4, 2);
lean_closure_set(x_3, 0, x_1);
lean_closure_set(x_3, 1, x_2);
lean_inc_ref(x_1);
x_4 = lean_alloc_closure((void*)(l_Lean_MessageData_ofExpr___lam__0___boxed), 2, 1);
lean_closure_set(x_4, 0, x_1);
x_5 = lean_alloc_closure((void*)(l_Lean_inlineExpr___lam__2___boxed), 3, 1);
lean_closure_set(x_5, 0, x_1);
x_6 = l_Lean_MessageData_lazy(x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00Lean_inlineExpr_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; lean_object* x_5; 
x_4 = l_Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00Lean_inlineExpr_spec__0_spec__0(x_1, x_2, x_3);
lean_dec_ref(x_1);
x_5 = lean_box(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00Lean_inlineExpr_spec__0_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7, lean_object* x_8) {
_start:
{
uint8_t x_9; uint8_t x_10; uint8_t x_11; lean_object* x_12; 
x_9 = lean_unbox(x_2);
x_10 = lean_unbox(x_6);
x_11 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00Lean_inlineExpr_spec__0_spec__0_spec__0(x_1, x_9, x_3, x_4, x_5, x_10, x_7, x_8);
lean_dec_ref(x_1);
x_12 = lean_box(x_11);
return x_12;
}
}
LEAN_EXPORT lean_object* l_String_Slice_contains___at___00Lean_inlineExpr_spec__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_String_Slice_contains___at___00Lean_inlineExpr_spec__0(x_1, x_2);
lean_dec_ref(x_2);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00Lean_inlineExpr_spec__0_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; lean_object* x_4; 
x_3 = l_Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00Lean_inlineExpr_spec__0_spec__0___redArg(x_1, x_2);
lean_dec_ref(x_1);
x_4 = lean_box(x_3);
return x_4;
}
}
LEAN_EXPORT lean_object* l_String_Slice_contains___at___00Lean_inlineExpr_spec__0___redArg___boxed(lean_object* x_1) {
_start:
{
uint8_t x_2; lean_object* x_3; 
x_2 = l_String_Slice_contains___at___00Lean_inlineExpr_spec__0___redArg(x_1);
lean_dec_ref(x_1);
x_3 = lean_box(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00Lean_inlineExpr_spec__0_spec__0_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
uint8_t x_5; uint8_t x_6; uint8_t x_7; lean_object* x_8; 
x_5 = lean_unbox(x_2);
x_6 = lean_unbox(x_4);
x_7 = l_Std_Iterators_IterM_DefaultConsumers_forIn_x27___at___00Std_Iterators_Iter_anyM___at___00String_Slice_contains___at___00Lean_inlineExpr_spec__0_spec__0_spec__0___redArg(x_1, x_5, x_3, x_6);
lean_dec_ref(x_1);
x_8 = lean_box(x_7);
return x_8;
}
}
static lean_object* _init_l_Lean_inlineExprTrailing___lam__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("`", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_inlineExprTrailing___lam__0___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_inlineExprTrailing___lam__0___closed__0;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_inlineExprTrailing___lam__0___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_inlineExprTrailing___lam__0___closed__1;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_inlineExprTrailing___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_5; lean_object* x_6; uint8_t x_7; lean_object* x_14; uint8_t x_15; 
x_5 = l_Lean_MessageData_ofExpr(x_1);
lean_inc_ref(x_5);
x_6 = l___private_Lean_Message_0__Lean_MessageData_formatExpensively(x_3, x_5);
x_14 = lean_string_length(x_6);
x_15 = lean_nat_dec_lt(x_2, x_14);
lean_dec(x_14);
if (x_15 == 0)
{
lean_object* x_16; lean_object* x_17; lean_object* x_18; uint8_t x_19; 
x_16 = lean_unsigned_to_nat(0u);
x_17 = lean_string_utf8_byte_size(x_6);
x_18 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_18, 0, x_6);
lean_ctor_set(x_18, 1, x_16);
lean_ctor_set(x_18, 2, x_17);
x_19 = l_String_Slice_contains___at___00Lean_inlineExpr_spec__0___redArg(x_18);
lean_dec_ref(x_18);
x_7 = x_19;
goto block_13;
}
else
{
lean_dec_ref(x_6);
x_7 = x_15;
goto block_13;
}
block_13:
{
if (x_7 == 0)
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = l_Lean_inlineExpr___lam__0___closed__2;
x_9 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_9, 0, x_8);
lean_ctor_set(x_9, 1, x_5);
x_10 = l_Lean_inlineExprTrailing___lam__0___closed__2;
x_11 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_11, 0, x_9);
lean_ctor_set(x_11, 1, x_10);
return x_11;
}
else
{
lean_object* x_12; 
x_12 = l_Lean_indentD(x_5);
return x_12;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_inlineExprTrailing___lam__2(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_4 = l_Lean_inlineExpr___lam__0___closed__2;
x_5 = l_Lean_MessageData_ofExpr(x_1);
x_6 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_6, 0, x_4);
lean_ctor_set(x_6, 1, x_5);
x_7 = l_Lean_inlineExprTrailing___lam__0___closed__2;
x_8 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_8, 0, x_6);
lean_ctor_set(x_8, 1, x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_inlineExprTrailing___lam__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_inlineExprTrailing___lam__0(x_1, x_2, x_3);
lean_dec_ref(x_3);
lean_dec(x_2);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_inlineExprTrailing___lam__2___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; 
x_4 = l_Lean_inlineExprTrailing___lam__2(x_1, x_2);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_inlineExprTrailing(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
lean_inc_ref(x_1);
x_3 = lean_alloc_closure((void*)(l_Lean_inlineExprTrailing___lam__0___boxed), 4, 2);
lean_closure_set(x_3, 0, x_1);
lean_closure_set(x_3, 1, x_2);
lean_inc_ref(x_1);
x_4 = lean_alloc_closure((void*)(l_Lean_MessageData_ofExpr___lam__0___boxed), 2, 1);
lean_closure_set(x_4, 0, x_1);
x_5 = lean_alloc_closure((void*)(l_Lean_inlineExprTrailing___lam__2___boxed), 3, 1);
lean_closure_set(x_5, 0, x_1);
x_6 = l_Lean_MessageData_lazy(x_3, x_4, x_5);
return x_6;
}
}
static lean_object* _init_l_Lean_aquote___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("「", 3, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_aquote___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_aquote___closed__0;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_aquote___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_aquote___closed__1;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_aquote___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("」", 3, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_aquote___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_aquote___closed__3;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_aquote___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_aquote___closed__4;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_aquote(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_2 = l_Lean_aquote___closed__2;
x_3 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
x_4 = l_Lean_aquote___closed__5;
x_5 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_5, 0, x_3);
lean_ctor_set(x_5, 1, x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_instAddMessageContextOfMonadLift___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_apply_1(x_1, x_3);
x_5 = lean_apply_2(x_2, lean_box(0), x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_instAddMessageContextOfMonadLift___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Lean_instAddMessageContextOfMonadLift___redArg___lam__0), 3, 2);
lean_closure_set(x_3, 0, x_2);
lean_closure_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instAddMessageContextOfMonadLift(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_instAddMessageContextOfMonadLift___redArg(x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___redArg___lam__0___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(32u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___redArg___lam__0___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_addMessageContextPartial___redArg___lam__0___closed__0;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___redArg___lam__0___closed__2() {
_start:
{
size_t x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_1 = 5;
x_2 = lean_unsigned_to_nat(0u);
x_3 = l_Lean_addMessageContextPartial___redArg___lam__0___closed__0;
x_4 = l_Lean_addMessageContextPartial___redArg___lam__0___closed__1;
x_5 = lean_alloc_ctor(0, 4, sizeof(size_t)*1);
lean_ctor_set(x_5, 0, x_4);
lean_ctor_set(x_5, 1, x_3);
lean_ctor_set(x_5, 2, x_2);
lean_ctor_set(x_5, 3, x_2);
lean_ctor_set_usize(x_5, 4, x_1);
return x_5;
}
}
static lean_object* _init_l_Lean_addMessageContextPartial___redArg___lam__0___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = lean_box(1);
x_2 = l_Lean_addMessageContextPartial___redArg___lam__0___closed__2;
x_3 = l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit___closed__1;
x_4 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_5 = l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit___closed__2;
x_6 = l_Lean_addMessageContextPartial___redArg___lam__0___closed__3;
x_7 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_7, 0, x_1);
lean_ctor_set(x_7, 1, x_5);
lean_ctor_set(x_7, 2, x_6);
lean_ctor_set(x_7, 3, x_4);
x_8 = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(x_8, 0, x_7);
lean_ctor_set(x_8, 1, x_2);
x_9 = lean_apply_2(x_3, lean_box(0), x_8);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___redArg___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; 
x_6 = lean_alloc_closure((void*)(l_Lean_addMessageContextPartial___redArg___lam__0), 4, 3);
lean_closure_set(x_6, 0, x_5);
lean_closure_set(x_6, 1, x_1);
lean_closure_set(x_6, 2, x_2);
x_7 = lean_apply_4(x_3, lean_box(0), lean_box(0), x_4, x_6);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_5 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_5);
x_6 = lean_ctor_get(x_1, 1);
lean_inc(x_6);
lean_dec_ref(x_1);
x_7 = lean_ctor_get(x_2, 0);
lean_inc(x_7);
lean_dec_ref(x_2);
x_8 = lean_ctor_get(x_5, 1);
lean_inc(x_8);
lean_dec_ref(x_5);
lean_inc(x_6);
x_9 = lean_alloc_closure((void*)(l_Lean_addMessageContextPartial___redArg___lam__1), 5, 4);
lean_closure_set(x_9, 0, x_4);
lean_closure_set(x_9, 1, x_8);
lean_closure_set(x_9, 2, x_6);
lean_closure_set(x_9, 3, x_3);
x_10 = lean_apply_4(x_6, lean_box(0), lean_box(0), x_7, x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextPartial(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; 
x_6 = l_Lean_addMessageContextPartial___redArg(x_2, x_3, x_4, x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_7 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_7, 0, x_1);
lean_ctor_set(x_7, 1, x_2);
lean_ctor_set(x_7, 2, x_3);
lean_ctor_set(x_7, 3, x_6);
x_8 = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(x_8, 0, x_7);
lean_ctor_set(x_8, 1, x_4);
x_9 = lean_apply_2(x_5, lean_box(0), x_8);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___redArg___lam__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; 
x_8 = lean_alloc_closure((void*)(l_Lean_addMessageContextFull___redArg___lam__0), 6, 5);
lean_closure_set(x_8, 0, x_1);
lean_closure_set(x_8, 1, x_2);
lean_closure_set(x_8, 2, x_7);
lean_closure_set(x_8, 3, x_3);
lean_closure_set(x_8, 4, x_4);
x_9 = lean_apply_4(x_5, lean_box(0), lean_box(0), x_6, x_8);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___redArg___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; 
lean_inc(x_4);
x_8 = lean_alloc_closure((void*)(l_Lean_addMessageContextFull___redArg___lam__1), 7, 6);
lean_closure_set(x_8, 0, x_1);
lean_closure_set(x_8, 1, x_7);
lean_closure_set(x_8, 2, x_2);
lean_closure_set(x_8, 3, x_3);
lean_closure_set(x_8, 4, x_4);
lean_closure_set(x_8, 5, x_5);
x_9 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_6, x_8);
return x_9;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___redArg___lam__3(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_8 = lean_ctor_get(x_1, 0);
lean_inc(x_8);
lean_dec_ref(x_1);
lean_inc(x_4);
x_9 = lean_alloc_closure((void*)(l_Lean_addMessageContextFull___redArg___lam__2), 7, 6);
lean_closure_set(x_9, 0, x_7);
lean_closure_set(x_9, 1, x_2);
lean_closure_set(x_9, 2, x_3);
lean_closure_set(x_9, 3, x_4);
lean_closure_set(x_9, 4, x_5);
lean_closure_set(x_9, 5, x_6);
x_10 = lean_apply_4(x_4, lean_box(0), lean_box(0), x_8, x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_7 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_7);
x_8 = lean_ctor_get(x_1, 1);
lean_inc(x_8);
lean_dec_ref(x_1);
x_9 = lean_ctor_get(x_2, 0);
lean_inc(x_9);
lean_dec_ref(x_2);
x_10 = lean_ctor_get(x_7, 1);
lean_inc(x_10);
lean_dec_ref(x_7);
lean_inc(x_8);
x_11 = lean_alloc_closure((void*)(l_Lean_addMessageContextFull___redArg___lam__3), 7, 6);
lean_closure_set(x_11, 0, x_3);
lean_closure_set(x_11, 1, x_6);
lean_closure_set(x_11, 2, x_10);
lean_closure_set(x_11, 3, x_8);
lean_closure_set(x_11, 4, x_5);
lean_closure_set(x_11, 5, x_4);
x_12 = lean_apply_4(x_8, lean_box(0), lean_box(0), x_9, x_11);
return x_12;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextFull(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l_Lean_addMessageContextFull___redArg(x_2, x_3, x_4, x_5, x_6, x_7);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_toArrayMapped_go___at___00Lean_stringToMessageData_spec__1___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
if (lean_obj_tag(x_2) == 0)
{
uint8_t x_14; 
x_14 = !lean_is_exclusive(x_2);
if (x_14 == 0)
{
lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; uint8_t x_21; 
x_15 = lean_ctor_get(x_2, 0);
x_16 = lean_ctor_get(x_2, 1);
x_17 = lean_ctor_get(x_1, 0);
x_18 = lean_ctor_get(x_1, 1);
x_19 = lean_ctor_get(x_1, 2);
x_20 = lean_nat_sub(x_19, x_18);
x_21 = lean_nat_dec_eq(x_16, x_20);
lean_dec(x_20);
if (x_21 == 0)
{
uint32_t x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint32_t x_26; uint8_t x_27; 
x_22 = 10;
x_23 = lean_nat_add(x_18, x_16);
x_24 = lean_string_utf8_next_fast(x_17, x_23);
x_25 = lean_nat_sub(x_24, x_18);
lean_dec(x_24);
x_26 = lean_string_utf8_get_fast(x_17, x_23);
lean_dec(x_23);
x_27 = lean_uint32_dec_eq(x_26, x_22);
if (x_27 == 0)
{
lean_dec(x_16);
lean_ctor_set(x_2, 1, x_25);
goto _start;
}
else
{
lean_object* x_29; lean_object* x_30; lean_object* x_31; lean_object* x_32; 
lean_inc_ref(x_1);
x_29 = l_String_Slice_slice_x21(x_1, x_15, x_16);
lean_dec(x_16);
lean_dec(x_15);
x_30 = lean_ctor_get(x_29, 0);
lean_inc_ref(x_30);
x_31 = lean_ctor_get(x_29, 1);
lean_inc(x_31);
x_32 = lean_ctor_get(x_29, 2);
lean_inc(x_32);
lean_dec_ref(x_29);
lean_inc(x_25);
lean_ctor_set(x_2, 1, x_25);
lean_ctor_set(x_2, 0, x_25);
x_4 = x_2;
x_5 = x_30;
x_6 = x_31;
x_7 = x_32;
goto block_13;
}
}
else
{
lean_object* x_33; lean_object* x_34; 
lean_free_object(x_2);
lean_dec(x_16);
x_33 = lean_nat_add(x_18, x_15);
lean_dec(x_15);
x_34 = lean_box(1);
lean_inc(x_19);
lean_inc_ref(x_17);
x_4 = x_34;
x_5 = x_17;
x_6 = x_33;
x_7 = x_19;
goto block_13;
}
}
else
{
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; uint8_t x_41; 
x_35 = lean_ctor_get(x_2, 0);
x_36 = lean_ctor_get(x_2, 1);
lean_inc(x_36);
lean_inc(x_35);
lean_dec(x_2);
x_37 = lean_ctor_get(x_1, 0);
x_38 = lean_ctor_get(x_1, 1);
x_39 = lean_ctor_get(x_1, 2);
x_40 = lean_nat_sub(x_39, x_38);
x_41 = lean_nat_dec_eq(x_36, x_40);
lean_dec(x_40);
if (x_41 == 0)
{
uint32_t x_42; lean_object* x_43; lean_object* x_44; lean_object* x_45; uint32_t x_46; uint8_t x_47; 
x_42 = 10;
x_43 = lean_nat_add(x_38, x_36);
x_44 = lean_string_utf8_next_fast(x_37, x_43);
x_45 = lean_nat_sub(x_44, x_38);
lean_dec(x_44);
x_46 = lean_string_utf8_get_fast(x_37, x_43);
lean_dec(x_43);
x_47 = lean_uint32_dec_eq(x_46, x_42);
if (x_47 == 0)
{
lean_object* x_48; 
lean_dec(x_36);
x_48 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_48, 0, x_35);
lean_ctor_set(x_48, 1, x_45);
x_2 = x_48;
goto _start;
}
else
{
lean_object* x_50; lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; 
lean_inc_ref(x_1);
x_50 = l_String_Slice_slice_x21(x_1, x_35, x_36);
lean_dec(x_36);
lean_dec(x_35);
x_51 = lean_ctor_get(x_50, 0);
lean_inc_ref(x_51);
x_52 = lean_ctor_get(x_50, 1);
lean_inc(x_52);
x_53 = lean_ctor_get(x_50, 2);
lean_inc(x_53);
lean_dec_ref(x_50);
lean_inc(x_45);
x_54 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_54, 0, x_45);
lean_ctor_set(x_54, 1, x_45);
x_4 = x_54;
x_5 = x_51;
x_6 = x_52;
x_7 = x_53;
goto block_13;
}
}
else
{
lean_object* x_55; lean_object* x_56; 
lean_dec(x_36);
x_55 = lean_nat_add(x_38, x_35);
lean_dec(x_35);
x_56 = lean_box(1);
lean_inc(x_39);
lean_inc_ref(x_37);
x_4 = x_56;
x_5 = x_37;
x_6 = x_55;
x_7 = x_39;
goto block_13;
}
}
}
else
{
lean_dec_ref(x_1);
return x_3;
}
block_13:
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_8 = lean_string_utf8_extract(x_5, x_6, x_7);
lean_dec(x_7);
lean_dec(x_6);
lean_dec_ref(x_5);
x_9 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_9, 0, x_8);
x_10 = l_Lean_MessageData_ofFormat(x_9);
x_11 = lean_array_push(x_3, x_10);
x_2 = x_4;
x_3 = x_11;
goto _start;
}
}
}
LEAN_EXPORT lean_object* l_Std_Iterators_IterM_DefaultConsumers_toArrayMapped_go___at___00Lean_stringToMessageData_spec__1(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Std_Iterators_IterM_DefaultConsumers_toArrayMapped_go___at___00Lean_stringToMessageData_spec__1___redArg(x_1, x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_String_Slice_split___at___00Lean_stringToMessageData_spec__0___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_2, 0, x_1);
lean_ctor_set(x_2, 1, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_String_Slice_split___at___00Lean_stringToMessageData_spec__0(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_String_Slice_split___at___00Lean_stringToMessageData_spec__0___closed__0;
return x_2;
}
}
static lean_object* _init_l_Lean_stringToMessageData___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_stringToMessageData(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_2 = lean_unsigned_to_nat(0u);
x_3 = lean_string_utf8_byte_size(x_1);
x_4 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_4, 0, x_1);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_3);
x_5 = l_String_Slice_split___at___00Lean_stringToMessageData_spec__0(x_4);
x_6 = l_Lean_stringToMessageData___closed__0;
x_7 = l_Std_Iterators_IterM_DefaultConsumers_toArrayMapped_go___at___00Lean_stringToMessageData_spec__1___redArg(x_4, x_5, x_6);
x_8 = lean_array_to_list(x_7);
x_9 = l_Lean_MessageData_ofList___closed__6;
x_10 = l_Lean_MessageData_joinSep(x_8, x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l_String_Slice_split___at___00Lean_stringToMessageData_spec__0___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_String_Slice_split___at___00Lean_stringToMessageData_spec__0(x_1);
lean_dec_ref(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_instToMessageDataOfToFormat___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = l_Lean_MessageData_instCoeString___closed__0;
x_3 = lean_alloc_closure((void*)(l_Function_comp), 6, 5);
lean_closure_set(x_3, 0, lean_box(0));
lean_closure_set(x_3, 1, lean_box(0));
lean_closure_set(x_3, 2, lean_box(0));
lean_closure_set(x_3, 3, x_2);
lean_closure_set(x_3, 4, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instToMessageDataOfToFormat(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_instToMessageDataOfToFormat___redArg(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToMessageDataExpr() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_MessageData_instCoeExpr___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_instToMessageDataLevel() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_MessageData_instCoeLevel___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_instToMessageDataName() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_MessageData_instCoeName___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_instToMessageDataString___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_stringToMessageData), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instToMessageDataString() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instToMessageDataString___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_instToMessageDataSyntax() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_MessageData_instCoeSyntax___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_instToMessageDataTSyntax(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_MessageData_instCoeSyntax___closed__0;
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_instToMessageDataTSyntax___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_instToMessageDataTSyntax(x_1);
lean_dec(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instToMessageDataFormat() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_MessageData_instCoeString___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_instToMessageDataMVarId___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_MessageData_instCoeMVarId___lam__0), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instToMessageDataMVarId() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instToMessageDataMVarId___closed__0;
return x_1;
}
}
static lean_object* _init_l_Lean_instToMessageDataMessageData___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_id___boxed), 2, 1);
lean_closure_set(x_1, 0, lean_box(0));
return x_1;
}
}
static lean_object* _init_l_Lean_instToMessageDataMessageData() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_instToMessageDataMessageData___closed__0;
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_instToMessageDataList___redArg___lam__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_3 = lean_box(0);
x_4 = l_List_mapTR_loop___redArg(x_1, x_2, x_3);
x_5 = l_Lean_MessageData_ofList(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_instToMessageDataList___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_instToMessageDataList___redArg___lam__0), 2, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_instToMessageDataList(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_instToMessageDataList___redArg(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instToMessageDataArray___redArg___lam__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_3 = lean_array_to_list(x_2);
x_4 = lean_box(0);
x_5 = l_List_mapTR_loop___redArg(x_1, x_3, x_4);
x_6 = l_Lean_MessageData_ofList(x_5);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_instToMessageDataArray___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_instToMessageDataArray___redArg___lam__0), 2, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_instToMessageDataArray(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_instToMessageDataArray___redArg(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instToMessageDataSubarray___redArg___lam__0(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_inc(x_2);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_instToMessageDataSubarray___redArg___lam__0___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_instToMessageDataSubarray___redArg___lam__0(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instToMessageDataSubarray___redArg___lam__1(lean_object* x_1) {
_start:
{
lean_inc(x_1);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_instToMessageDataSubarray___redArg___lam__1___boxed(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = l_Lean_instToMessageDataSubarray___redArg___lam__1(x_1);
lean_dec(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instToMessageDataSubarray___redArg___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__6), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instToMessageDataSubarray___redArg___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__5___boxed), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instToMessageDataSubarray___redArg___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__4___boxed), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instToMessageDataSubarray___redArg___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__3), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instToMessageDataSubarray___redArg___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__2___boxed), 2, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instToMessageDataSubarray___redArg___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__1___boxed), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instToMessageDataSubarray___redArg___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Id_instMonad___lam__0), 4, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instToMessageDataSubarray___redArg___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToMessageDataSubarray___redArg___closed__1;
x_2 = l_Lean_instToMessageDataSubarray___redArg___closed__0;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instToMessageDataSubarray___redArg___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = l_Lean_instToMessageDataSubarray___redArg___closed__5;
x_2 = l_Lean_instToMessageDataSubarray___redArg___closed__4;
x_3 = l_Lean_instToMessageDataSubarray___redArg___closed__3;
x_4 = l_Lean_instToMessageDataSubarray___redArg___closed__2;
x_5 = l_Lean_instToMessageDataSubarray___redArg___closed__7;
x_6 = lean_alloc_ctor(0, 5, 0);
lean_ctor_set(x_6, 0, x_5);
lean_ctor_set(x_6, 1, x_4);
lean_ctor_set(x_6, 2, x_3);
lean_ctor_set(x_6, 3, x_2);
lean_ctor_set(x_6, 4, x_1);
return x_6;
}
}
static lean_object* _init_l_Lean_instToMessageDataSubarray___redArg___closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_instToMessageDataSubarray___redArg___closed__6;
x_2 = l_Lean_instToMessageDataSubarray___redArg___closed__8;
x_3 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_instToMessageDataSubarray___redArg___lam__2___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_instIteratorSubarrayIteratorId___lam__0), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_instToMessageDataSubarray___redArg___lam__2___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = lean_mk_empty_array_with_capacity(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_instToMessageDataSubarray___redArg___lam__2(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_6 = l_Lean_instToMessageDataSubarray___redArg___lam__2___closed__0;
x_7 = l_Lean_instToMessageDataSubarray___redArg___lam__2___closed__1;
x_8 = l_Std_Iterators_IterM_DefaultConsumers_toArrayMapped_go___redArg(x_6, x_1, x_2, x_3, x_5, x_7);
x_9 = lean_array_to_list(x_8);
x_10 = lean_box(0);
x_11 = l_List_mapTR_loop___redArg(x_4, x_9, x_10);
x_12 = l_Lean_MessageData_ofList(x_11);
return x_12;
}
}
LEAN_EXPORT lean_object* l_Lean_instToMessageDataSubarray___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_2 = lean_alloc_closure((void*)(l_Lean_instToMessageDataSubarray___redArg___lam__0___boxed), 2, 0);
x_3 = lean_alloc_closure((void*)(l_Lean_instToMessageDataSubarray___redArg___lam__1___boxed), 1, 0);
x_4 = l_Lean_instToMessageDataSubarray___redArg___closed__9;
x_5 = lean_alloc_closure((void*)(l_Lean_instToMessageDataSubarray___redArg___lam__2), 5, 4);
lean_closure_set(x_5, 0, x_2);
lean_closure_set(x_5, 1, x_3);
lean_closure_set(x_5, 2, x_4);
lean_closure_set(x_5, 3, x_1);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_instToMessageDataSubarray(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_instToMessageDataSubarray___redArg(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_instToMessageDataOption___redArg___lam__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("some (", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_instToMessageDataOption___redArg___lam__0___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instToMessageDataOption___redArg___lam__0___closed__0;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instToMessageDataOption___redArg___lam__0___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instToMessageDataOption___redArg___lam__0___closed__1;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instToMessageDataOption___redArg___lam__0___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_mkErrorStringWithPos___closed__4;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instToMessageDataOption___redArg___lam__0___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instToMessageDataOption___redArg___lam__0___closed__3;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_instToMessageDataOption___redArg___lam__0(lean_object* x_1, lean_object* x_2) {
_start:
{
if (lean_obj_tag(x_2) == 0)
{
lean_object* x_3; 
lean_dec_ref(x_1);
x_3 = l_Lean_MessageData_instCoeOptionExpr___lam__0___closed__2;
return x_3;
}
else
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
lean_dec_ref(x_2);
x_5 = l_Lean_instToMessageDataOption___redArg___lam__0___closed__2;
x_6 = lean_apply_1(x_1, x_4);
x_7 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_7, 0, x_5);
lean_ctor_set(x_7, 1, x_6);
x_8 = l_Lean_instToMessageDataOption___redArg___lam__0___closed__4;
x_9 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_9, 0, x_7);
lean_ctor_set(x_9, 1, x_8);
return x_9;
}
}
}
LEAN_EXPORT lean_object* l_Lean_instToMessageDataOption___redArg(lean_object* x_1) {
_start:
{
lean_object* x_2; 
x_2 = lean_alloc_closure((void*)(l_Lean_instToMessageDataOption___redArg___lam__0), 2, 1);
lean_closure_set(x_2, 0, x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_instToMessageDataOption(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_instToMessageDataOption___redArg(x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instToMessageDataProd___redArg___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
uint8_t x_4; 
x_4 = !lean_is_exclusive(x_3);
if (x_4 == 0)
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; 
x_5 = lean_ctor_get(x_3, 0);
x_6 = lean_ctor_get(x_3, 1);
x_7 = lean_apply_1(x_1, x_5);
x_8 = l_Lean_MessageData_ofList___closed__5;
lean_ctor_set_tag(x_3, 7);
lean_ctor_set(x_3, 1, x_8);
lean_ctor_set(x_3, 0, x_7);
x_9 = l_Lean_MessageData_ofList___closed__6;
x_10 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_10, 0, x_3);
lean_ctor_set(x_10, 1, x_9);
x_11 = lean_apply_1(x_2, x_6);
x_12 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_12, 0, x_10);
lean_ctor_set(x_12, 1, x_11);
x_13 = l_Lean_MessageData_paren(x_12);
return x_13;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; 
x_14 = lean_ctor_get(x_3, 0);
x_15 = lean_ctor_get(x_3, 1);
lean_inc(x_15);
lean_inc(x_14);
lean_dec(x_3);
x_16 = lean_apply_1(x_1, x_14);
x_17 = l_Lean_MessageData_ofList___closed__5;
x_18 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_18, 0, x_16);
lean_ctor_set(x_18, 1, x_17);
x_19 = l_Lean_MessageData_ofList___closed__6;
x_20 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_20, 0, x_18);
lean_ctor_set(x_20, 1, x_19);
x_21 = lean_apply_1(x_2, x_15);
x_22 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_22, 0, x_20);
lean_ctor_set(x_22, 1, x_21);
x_23 = l_Lean_MessageData_paren(x_22);
return x_23;
}
}
}
LEAN_EXPORT lean_object* l_Lean_instToMessageDataProd___redArg(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = lean_alloc_closure((void*)(l_Lean_instToMessageDataProd___redArg___lam__0), 3, 2);
lean_closure_set(x_3, 0, x_1);
lean_closure_set(x_3, 1, x_2);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_instToMessageDataProd(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_instToMessageDataProd___redArg(x_3, x_4);
return x_5;
}
}
static lean_object* _init_l_Lean_instToMessageDataOptionExpr___lam__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("<not-available>", 15, 15);
return x_1;
}
}
static lean_object* _init_l_Lean_instToMessageDataOptionExpr___lam__0___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instToMessageDataOptionExpr___lam__0___closed__0;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_instToMessageDataOptionExpr___lam__0___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instToMessageDataOptionExpr___lam__0___closed__1;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_instToMessageDataOptionExpr___lam__0(lean_object* x_1) {
_start:
{
if (lean_obj_tag(x_1) == 0)
{
lean_object* x_2; 
x_2 = l_Lean_instToMessageDataOptionExpr___lam__0___closed__2;
return x_2;
}
else
{
lean_object* x_3; lean_object* x_4; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc(x_3);
lean_dec_ref(x_1);
x_4 = l_Lean_MessageData_ofExpr(x_3);
return x_4;
}
}
}
static lean_object* _init_l_Lean_instToMessageDataOptionExpr() {
_start:
{
lean_object* x_1; 
x_1 = lean_alloc_closure((void*)(l_Lean_instToMessageDataOptionExpr___lam__0), 1, 0);
return x_1;
}
}
static lean_object* _init_l_Lean_termM_x21___00__closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("termM!_", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_termM_x21___00__closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_termM_x21___00__closed__0;
x_2 = l_Lean_instImpl___closed__0_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_;
x_3 = l_Lean_Name_mkStr2(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_termM_x21___00__closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("andthen", 7, 7);
return x_1;
}
}
static lean_object* _init_l_Lean_termM_x21___00__closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_termM_x21___00__closed__2;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_termM_x21___00__closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("m!", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_termM_x21___00__closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_termM_x21___00__closed__4;
x_2 = lean_alloc_ctor(5, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_termM_x21___00__closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("interpolatedStr", 15, 15);
return x_1;
}
}
static lean_object* _init_l_Lean_termM_x21___00__closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_termM_x21___00__closed__6;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_termM_x21___00__closed__8() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("term", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_termM_x21___00__closed__9() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_termM_x21___00__closed__8;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_termM_x21___00__closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_unsigned_to_nat(0u);
x_2 = l_Lean_termM_x21___00__closed__9;
x_3 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_termM_x21___00__closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean_termM_x21___00__closed__10;
x_2 = l_Lean_termM_x21___00__closed__7;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_termM_x21___00__closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_termM_x21___00__closed__11;
x_2 = l_Lean_termM_x21___00__closed__5;
x_3 = l_Lean_termM_x21___00__closed__3;
x_4 = lean_alloc_ctor(2, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_termM_x21___00__closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean_termM_x21___00__closed__12;
x_2 = lean_unsigned_to_nat(1024u);
x_3 = l_Lean_termM_x21___00__closed__1;
x_4 = lean_alloc_ctor(3, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_termM_x21__() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_termM_x21___00__closed__13;
return x_1;
}
}
static lean_object* _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__0() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instImpl___closed__1_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instImpl___closed__1_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_instImpl___closed__2_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_instImpl___closed__2_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__3;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__4;
x_2 = l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__2;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__6() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("toMessageData", 13, 13);
return x_1;
}
}
static lean_object* _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__7() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__6;
x_2 = l_String_toRawSubstring_x27(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__6;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("ToMessageData", 13, 13);
return x_1;
}
}
static lean_object* _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__6;
x_2 = l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__9;
x_3 = l_Lean_instImpl___closed__0_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_;
x_4 = l_Lean_Name_mkStr3(x_3, x_2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__10;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__12() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__11;
x_3 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_3, 0, x_2);
lean_ctor_set(x_3, 1, x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; uint8_t x_5; 
x_4 = l_Lean_termM_x21___00__closed__1;
lean_inc(x_1);
x_5 = l_Lean_Syntax_isOfKind(x_1, x_4);
if (x_5 == 0)
{
lean_object* x_6; lean_object* x_7; 
lean_dec_ref(x_2);
lean_dec(x_1);
x_6 = lean_box(1);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_6);
lean_ctor_set(x_7, 1, x_3);
return x_7;
}
else
{
lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; uint8_t x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; lean_object* x_21; lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; 
x_8 = lean_ctor_get(x_2, 1);
x_9 = lean_ctor_get(x_2, 2);
x_10 = lean_ctor_get(x_2, 5);
x_11 = lean_unsigned_to_nat(1u);
x_12 = l_Lean_Syntax_getArg(x_1, x_11);
lean_dec(x_1);
x_13 = 0;
x_14 = l_Lean_SourceInfo_fromRef(x_10, x_13);
x_15 = l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__0;
x_16 = l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__1;
lean_inc(x_9);
lean_inc(x_8);
x_17 = l_Lean_addMacroScope(x_8, x_16, x_9);
x_18 = l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__5;
lean_inc(x_14);
x_19 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_19, 0, x_14);
lean_ctor_set(x_19, 1, x_15);
lean_ctor_set(x_19, 2, x_17);
lean_ctor_set(x_19, 3, x_18);
x_20 = l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__7;
x_21 = l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__8;
lean_inc(x_9);
lean_inc(x_8);
x_22 = l_Lean_addMacroScope(x_8, x_21, x_9);
x_23 = l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__12;
x_24 = lean_alloc_ctor(3, 4, 0);
lean_ctor_set(x_24, 0, x_14);
lean_ctor_set(x_24, 1, x_20);
lean_ctor_set(x_24, 2, x_22);
lean_ctor_set(x_24, 3, x_23);
lean_inc_ref(x_24);
x_25 = l_Lean_TSyntax_expandInterpolatedStr(x_12, x_19, x_24, x_24, x_2, x_3);
lean_dec(x_12);
if (lean_obj_tag(x_25) == 0)
{
uint8_t x_26; 
x_26 = !lean_is_exclusive(x_25);
if (x_26 == 0)
{
return x_25;
}
else
{
lean_object* x_27; lean_object* x_28; lean_object* x_29; 
x_27 = lean_ctor_get(x_25, 0);
x_28 = lean_ctor_get(x_25, 1);
lean_inc(x_28);
lean_inc(x_27);
lean_dec(x_25);
x_29 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_29, 0, x_27);
lean_ctor_set(x_29, 1, x_28);
return x_29;
}
}
else
{
uint8_t x_30; 
x_30 = !lean_is_exclusive(x_25);
if (x_30 == 0)
{
return x_25;
}
else
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; 
x_31 = lean_ctor_get(x_25, 0);
x_32 = lean_ctor_get(x_25, 1);
lean_inc(x_32);
lean_inc(x_31);
lean_dec(x_25);
x_33 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_33, 0, x_31);
lean_ctor_set(x_33, 1, x_32);
return x_33;
}
}
}
}
}
static lean_object* _init_l_Lean_toMessageList___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("\n\n", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_toMessageList___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_toMessageList___closed__0;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_toMessageList(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; 
x_2 = lean_array_to_list(x_1);
x_3 = l_Lean_toMessageList___closed__1;
x_4 = l_Lean_MessageData_joinSep(x_2, x_3);
x_5 = l_Lean_indentD(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l___private_Lean_Message_0__Lean_Kernel_Exception_mkCtx(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; 
x_5 = lean_elab_environment_of_kernel_env(x_1);
x_6 = l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit___closed__2;
x_7 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_7, 0, x_5);
lean_ctor_set(x_7, 1, x_6);
lean_ctor_set(x_7, 2, x_2);
lean_ctor_set(x_7, 3, x_3);
x_8 = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(x_8, 0, x_7);
lean_ctor_set(x_8, 1, x_4);
return x_8;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___lam__0___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(kernel) declaration type mismatch, '", 37, 37);
return x_1;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___lam__0___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___lam__0___closed__0;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___lam__0___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("' has type", 10, 10);
return x_1;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___lam__0___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___lam__0___closed__2;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___lam__0___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("\nbut it is expected to have type", 32, 32);
return x_1;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___lam__0___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___lam__0___closed__4;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Kernel_Exception_toMessageData___lam__0(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_4 = l_Lean_Kernel_Exception_toMessageData___lam__0___closed__1;
x_5 = l_Lean_MessageData_ofName(x_2);
x_6 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_6, 0, x_4);
lean_ctor_set(x_6, 1, x_5);
x_7 = l_Lean_Kernel_Exception_toMessageData___lam__0___closed__3;
x_8 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_8, 0, x_6);
lean_ctor_set(x_8, 1, x_7);
x_9 = l_Lean_indentExpr(x_1);
x_10 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_10, 0, x_8);
lean_ctor_set(x_10, 1, x_9);
x_11 = l_Lean_Kernel_Exception_toMessageData___lam__0___closed__5;
x_12 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_12, 0, x_10);
lean_ctor_set(x_12, 1, x_11);
x_13 = l_Lean_indentExpr(x_3);
x_14 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_14, 0, x_12);
lean_ctor_set(x_14, 1, x_13);
return x_14;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_PersistentHashMap_mkEmptyEntriesArray(lean_box(0), lean_box(0));
return x_1;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__0;
x_2 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; 
x_1 = lean_box(1);
x_2 = l_Lean_addMessageContextPartial___redArg___lam__0___closed__2;
x_3 = l_Lean_Kernel_Exception_toMessageData___closed__1;
x_4 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_4, 0, x_3);
lean_ctor_set(x_4, 1, x_2);
lean_ctor_set(x_4, 2, x_1);
return x_4;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(kernel) unknown constant '", 27, 27);
return x_1;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__4() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__3;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("'", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__5;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(kernel) constant has already been declared '", 45, 45);
return x_1;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__7;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(kernel) declaration type mismatch", 34, 34);
return x_1;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__9;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__11() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__10;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(kernel) declaration has metavariables '", 40, 40);
return x_1;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__13() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__12;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__14() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(kernel) declaration has free variables '", 41, 41);
return x_1;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__15() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__14;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__16() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(kernel) function expected", 26, 26);
return x_1;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__17() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__16;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__18() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(kernel) type expected", 22, 22);
return x_1;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__19() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__18;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__20() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(kernel) let-declaration type mismatch '", 40, 40);
return x_1;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__21() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__20;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__22() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(kernel) type mismatch at", 25, 25);
return x_1;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__23() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__22;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__24() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(kernel) application type mismatch", 34, 34);
return x_1;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__25() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__24;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__26() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("\nargument has type", 18, 18);
return x_1;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__27() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__26;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__28() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("\nbut function has type", 22, 22);
return x_1;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__29() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__28;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__30() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(kernel) invalid projection", 27, 27);
return x_1;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__31() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__30;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__32() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(kernel) type of theorem '", 26, 26);
return x_1;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__33() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__32;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__34() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("' is not a proposition", 22, 22);
return x_1;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__35() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__34;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__36() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(kernel) ", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__37() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__36;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__38() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(kernel) deterministic timeout", 30, 30);
return x_1;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__39() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__38;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__40() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__39;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__41() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(kernel) excessive memory consumption detected", 46, 46);
return x_1;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__42() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__41;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__43() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__42;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__44() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(kernel) deep recursion detected", 32, 32);
return x_1;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__45() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__44;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__46() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__45;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__47() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("(kernel) interrupted", 20, 20);
return x_1;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__48() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__47;
x_2 = lean_alloc_ctor(3, 1, 0);
lean_ctor_set(x_2, 0, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Kernel_Exception_toMessageData___closed__49() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Kernel_Exception_toMessageData___closed__48;
x_2 = l_Lean_MessageData_ofFormat(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Kernel_Exception_toMessageData(lean_object* x_1, lean_object* x_2) {
_start:
{
switch (lean_obj_tag(x_1)) {
case 0:
{
uint8_t x_3; 
x_3 = !lean_is_exclusive(x_1);
if (x_3 == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_4 = lean_ctor_get(x_1, 0);
x_5 = lean_ctor_get(x_1, 1);
x_6 = l_Lean_Kernel_Exception_toMessageData___closed__2;
x_7 = l_Lean_Kernel_Exception_toMessageData___closed__4;
x_8 = l_Lean_MessageData_ofName(x_5);
lean_ctor_set_tag(x_1, 7);
lean_ctor_set(x_1, 1, x_8);
lean_ctor_set(x_1, 0, x_7);
x_9 = l_Lean_Kernel_Exception_toMessageData___closed__6;
x_10 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_10, 0, x_1);
lean_ctor_set(x_10, 1, x_9);
x_11 = l___private_Lean_Message_0__Lean_Kernel_Exception_mkCtx(x_4, x_6, x_2, x_10);
return x_11;
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; lean_object* x_20; 
x_12 = lean_ctor_get(x_1, 0);
x_13 = lean_ctor_get(x_1, 1);
lean_inc(x_13);
lean_inc(x_12);
lean_dec(x_1);
x_14 = l_Lean_Kernel_Exception_toMessageData___closed__2;
x_15 = l_Lean_Kernel_Exception_toMessageData___closed__4;
x_16 = l_Lean_MessageData_ofName(x_13);
x_17 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_17, 0, x_15);
lean_ctor_set(x_17, 1, x_16);
x_18 = l_Lean_Kernel_Exception_toMessageData___closed__6;
x_19 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_19, 0, x_17);
lean_ctor_set(x_19, 1, x_18);
x_20 = l___private_Lean_Message_0__Lean_Kernel_Exception_mkCtx(x_12, x_14, x_2, x_19);
return x_20;
}
}
case 1:
{
uint8_t x_21; 
x_21 = !lean_is_exclusive(x_1);
if (x_21 == 0)
{
lean_object* x_22; lean_object* x_23; lean_object* x_24; lean_object* x_25; uint8_t x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
x_22 = lean_ctor_get(x_1, 0);
x_23 = lean_ctor_get(x_1, 1);
x_24 = l_Lean_Kernel_Exception_toMessageData___closed__2;
x_25 = l_Lean_Kernel_Exception_toMessageData___closed__8;
x_26 = 1;
x_27 = l_Lean_MessageData_ofConstName(x_23, x_26);
lean_ctor_set_tag(x_1, 7);
lean_ctor_set(x_1, 1, x_27);
lean_ctor_set(x_1, 0, x_25);
x_28 = l_Lean_Kernel_Exception_toMessageData___closed__6;
x_29 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_29, 0, x_1);
lean_ctor_set(x_29, 1, x_28);
x_30 = l___private_Lean_Message_0__Lean_Kernel_Exception_mkCtx(x_22, x_24, x_2, x_29);
return x_30;
}
else
{
lean_object* x_31; lean_object* x_32; lean_object* x_33; lean_object* x_34; uint8_t x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; 
x_31 = lean_ctor_get(x_1, 0);
x_32 = lean_ctor_get(x_1, 1);
lean_inc(x_32);
lean_inc(x_31);
lean_dec(x_1);
x_33 = l_Lean_Kernel_Exception_toMessageData___closed__2;
x_34 = l_Lean_Kernel_Exception_toMessageData___closed__8;
x_35 = 1;
x_36 = l_Lean_MessageData_ofConstName(x_32, x_35);
x_37 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_37, 0, x_34);
lean_ctor_set(x_37, 1, x_36);
x_38 = l_Lean_Kernel_Exception_toMessageData___closed__6;
x_39 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_39, 0, x_37);
lean_ctor_set(x_39, 1, x_38);
x_40 = l___private_Lean_Message_0__Lean_Kernel_Exception_mkCtx(x_31, x_33, x_2, x_39);
return x_40;
}
}
case 2:
{
lean_object* x_41; lean_object* x_42; lean_object* x_43; lean_object* x_44; 
x_41 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_41);
x_42 = lean_ctor_get(x_1, 1);
lean_inc(x_42);
x_43 = lean_ctor_get(x_1, 2);
lean_inc_ref(x_43);
lean_dec_ref(x_1);
x_44 = l_Lean_Kernel_Exception_toMessageData___closed__2;
switch (lean_obj_tag(x_42)) {
case 1:
{
lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; 
x_45 = lean_ctor_get(x_42, 0);
lean_inc_ref(x_45);
lean_dec_ref(x_42);
x_46 = lean_ctor_get(x_45, 0);
lean_inc_ref(x_46);
lean_dec_ref(x_45);
x_47 = lean_ctor_get(x_46, 0);
lean_inc(x_47);
x_48 = lean_ctor_get(x_46, 2);
lean_inc_ref(x_48);
lean_dec_ref(x_46);
x_49 = l_Lean_Kernel_Exception_toMessageData___lam__0(x_43, x_47, x_48);
x_50 = l___private_Lean_Message_0__Lean_Kernel_Exception_mkCtx(x_41, x_44, x_2, x_49);
return x_50;
}
case 2:
{
lean_object* x_51; lean_object* x_52; lean_object* x_53; lean_object* x_54; lean_object* x_55; lean_object* x_56; 
x_51 = lean_ctor_get(x_42, 0);
lean_inc_ref(x_51);
lean_dec_ref(x_42);
x_52 = lean_ctor_get(x_51, 0);
lean_inc_ref(x_52);
lean_dec_ref(x_51);
x_53 = lean_ctor_get(x_52, 0);
lean_inc(x_53);
x_54 = lean_ctor_get(x_52, 2);
lean_inc_ref(x_54);
lean_dec_ref(x_52);
x_55 = l_Lean_Kernel_Exception_toMessageData___lam__0(x_43, x_53, x_54);
x_56 = l___private_Lean_Message_0__Lean_Kernel_Exception_mkCtx(x_41, x_44, x_2, x_55);
return x_56;
}
default: 
{
lean_object* x_57; lean_object* x_58; 
lean_dec_ref(x_43);
lean_dec(x_42);
x_57 = l_Lean_Kernel_Exception_toMessageData___closed__11;
x_58 = l___private_Lean_Message_0__Lean_Kernel_Exception_mkCtx(x_41, x_44, x_2, x_57);
return x_58;
}
}
}
case 3:
{
lean_object* x_59; lean_object* x_60; lean_object* x_61; lean_object* x_62; uint8_t x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; lean_object* x_67; lean_object* x_68; 
x_59 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_59);
x_60 = lean_ctor_get(x_1, 1);
lean_inc(x_60);
lean_dec_ref(x_1);
x_61 = l_Lean_Kernel_Exception_toMessageData___closed__2;
x_62 = l_Lean_Kernel_Exception_toMessageData___closed__13;
x_63 = 1;
x_64 = l_Lean_MessageData_ofConstName(x_60, x_63);
x_65 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_65, 0, x_62);
lean_ctor_set(x_65, 1, x_64);
x_66 = l_Lean_Kernel_Exception_toMessageData___closed__6;
x_67 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_67, 0, x_65);
lean_ctor_set(x_67, 1, x_66);
x_68 = l___private_Lean_Message_0__Lean_Kernel_Exception_mkCtx(x_59, x_61, x_2, x_67);
return x_68;
}
case 4:
{
lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; uint8_t x_73; lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; 
x_69 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_69);
x_70 = lean_ctor_get(x_1, 1);
lean_inc(x_70);
lean_dec_ref(x_1);
x_71 = l_Lean_Kernel_Exception_toMessageData___closed__2;
x_72 = l_Lean_Kernel_Exception_toMessageData___closed__15;
x_73 = 1;
x_74 = l_Lean_MessageData_ofConstName(x_70, x_73);
x_75 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_75, 0, x_72);
lean_ctor_set(x_75, 1, x_74);
x_76 = l_Lean_Kernel_Exception_toMessageData___closed__6;
x_77 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_77, 0, x_75);
lean_ctor_set(x_77, 1, x_76);
x_78 = l___private_Lean_Message_0__Lean_Kernel_Exception_mkCtx(x_69, x_71, x_2, x_77);
return x_78;
}
case 5:
{
lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; 
x_79 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_79);
x_80 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_80);
x_81 = lean_ctor_get(x_1, 2);
lean_inc_ref(x_81);
lean_dec_ref(x_1);
x_82 = l_Lean_Kernel_Exception_toMessageData___closed__17;
x_83 = l_Lean_indentExpr(x_81);
x_84 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_84, 0, x_82);
lean_ctor_set(x_84, 1, x_83);
x_85 = l___private_Lean_Message_0__Lean_Kernel_Exception_mkCtx(x_79, x_80, x_2, x_84);
return x_85;
}
case 6:
{
lean_object* x_86; lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; 
x_86 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_86);
x_87 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_87);
x_88 = lean_ctor_get(x_1, 2);
lean_inc_ref(x_88);
lean_dec_ref(x_1);
x_89 = l_Lean_Kernel_Exception_toMessageData___closed__19;
x_90 = l_Lean_indentExpr(x_88);
x_91 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_91, 0, x_89);
lean_ctor_set(x_91, 1, x_90);
x_92 = l___private_Lean_Message_0__Lean_Kernel_Exception_mkCtx(x_86, x_87, x_2, x_91);
return x_92;
}
case 7:
{
lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; 
x_93 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_93);
x_94 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_94);
x_95 = lean_ctor_get(x_1, 2);
lean_inc(x_95);
lean_dec_ref(x_1);
x_96 = l_Lean_Kernel_Exception_toMessageData___closed__21;
x_97 = l_Lean_MessageData_ofName(x_95);
x_98 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_98, 0, x_96);
lean_ctor_set(x_98, 1, x_97);
x_99 = l_Lean_Kernel_Exception_toMessageData___closed__6;
x_100 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_100, 0, x_98);
lean_ctor_set(x_100, 1, x_99);
x_101 = l___private_Lean_Message_0__Lean_Kernel_Exception_mkCtx(x_93, x_94, x_2, x_100);
return x_101;
}
case 8:
{
lean_object* x_102; lean_object* x_103; lean_object* x_104; lean_object* x_105; lean_object* x_106; lean_object* x_107; lean_object* x_108; 
x_102 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_102);
x_103 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_103);
x_104 = lean_ctor_get(x_1, 2);
lean_inc_ref(x_104);
lean_dec_ref(x_1);
x_105 = l_Lean_Kernel_Exception_toMessageData___closed__23;
x_106 = l_Lean_indentExpr(x_104);
x_107 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_107, 0, x_105);
lean_ctor_set(x_107, 1, x_106);
x_108 = l___private_Lean_Message_0__Lean_Kernel_Exception_mkCtx(x_102, x_103, x_2, x_107);
return x_108;
}
case 9:
{
lean_object* x_109; lean_object* x_110; lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; lean_object* x_124; lean_object* x_125; 
x_109 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_109);
x_110 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_110);
x_111 = lean_ctor_get(x_1, 2);
lean_inc_ref(x_111);
x_112 = lean_ctor_get(x_1, 3);
lean_inc_ref(x_112);
x_113 = lean_ctor_get(x_1, 4);
lean_inc_ref(x_113);
lean_dec_ref(x_1);
x_114 = l_Lean_Kernel_Exception_toMessageData___closed__25;
x_115 = l_Lean_indentExpr(x_111);
x_116 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_116, 0, x_114);
lean_ctor_set(x_116, 1, x_115);
x_117 = l_Lean_Kernel_Exception_toMessageData___closed__27;
x_118 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_118, 0, x_116);
lean_ctor_set(x_118, 1, x_117);
x_119 = l_Lean_indentExpr(x_113);
x_120 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_120, 0, x_118);
lean_ctor_set(x_120, 1, x_119);
x_121 = l_Lean_Kernel_Exception_toMessageData___closed__29;
x_122 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_122, 0, x_120);
lean_ctor_set(x_122, 1, x_121);
x_123 = l_Lean_indentExpr(x_112);
x_124 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_124, 0, x_122);
lean_ctor_set(x_124, 1, x_123);
x_125 = l___private_Lean_Message_0__Lean_Kernel_Exception_mkCtx(x_109, x_110, x_2, x_124);
return x_125;
}
case 10:
{
lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; 
x_126 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_126);
x_127 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_127);
x_128 = lean_ctor_get(x_1, 2);
lean_inc_ref(x_128);
lean_dec_ref(x_1);
x_129 = l_Lean_Kernel_Exception_toMessageData___closed__31;
x_130 = l_Lean_indentExpr(x_128);
x_131 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_131, 0, x_129);
lean_ctor_set(x_131, 1, x_130);
x_132 = l___private_Lean_Message_0__Lean_Kernel_Exception_mkCtx(x_126, x_127, x_2, x_131);
return x_132;
}
case 11:
{
lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; lean_object* x_137; uint8_t x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; 
x_133 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_133);
x_134 = lean_ctor_get(x_1, 1);
lean_inc(x_134);
x_135 = lean_ctor_get(x_1, 2);
lean_inc_ref(x_135);
lean_dec_ref(x_1);
x_136 = l_Lean_Kernel_Exception_toMessageData___closed__2;
x_137 = l_Lean_Kernel_Exception_toMessageData___closed__33;
x_138 = 1;
x_139 = l_Lean_MessageData_ofConstName(x_134, x_138);
x_140 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_140, 0, x_137);
lean_ctor_set(x_140, 1, x_139);
x_141 = l_Lean_Kernel_Exception_toMessageData___closed__35;
x_142 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_142, 0, x_140);
lean_ctor_set(x_142, 1, x_141);
x_143 = l_Lean_indentExpr(x_135);
x_144 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_144, 0, x_142);
lean_ctor_set(x_144, 1, x_143);
x_145 = l___private_Lean_Message_0__Lean_Kernel_Exception_mkCtx(x_133, x_136, x_2, x_144);
return x_145;
}
case 12:
{
lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; 
lean_dec(x_2);
x_146 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_146);
lean_dec_ref(x_1);
x_147 = l_Lean_Kernel_Exception_toMessageData___closed__37;
x_148 = l_Lean_stringToMessageData(x_146);
x_149 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_149, 0, x_147);
lean_ctor_set(x_149, 1, x_148);
return x_149;
}
case 13:
{
lean_object* x_150; 
lean_dec(x_2);
x_150 = l_Lean_Kernel_Exception_toMessageData___closed__40;
return x_150;
}
case 14:
{
lean_object* x_151; 
lean_dec(x_2);
x_151 = l_Lean_Kernel_Exception_toMessageData___closed__43;
return x_151;
}
case 15:
{
lean_object* x_152; 
lean_dec(x_2);
x_152 = l_Lean_Kernel_Exception_toMessageData___closed__46;
return x_152;
}
default: 
{
lean_object* x_153; 
lean_dec(x_2);
x_153 = l_Lean_Kernel_Exception_toMessageData___closed__49;
return x_153;
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_toTraceElem___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
double x_4; uint8_t x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_4 = l_Lean_MessageData_formatAux___closed__10;
x_5 = 1;
x_6 = l_Lean_mkErrorStringWithPos___closed__2;
x_7 = lean_alloc_ctor(0, 2, 17);
lean_ctor_set(x_7, 0, x_3);
lean_ctor_set(x_7, 1, x_6);
lean_ctor_set_float(x_7, sizeof(void*)*2, x_4);
lean_ctor_set_float(x_7, sizeof(void*)*2 + 8, x_4);
lean_ctor_set_uint8(x_7, sizeof(void*)*2 + 16, x_5);
x_8 = lean_apply_1(x_1, x_2);
x_9 = l_Lean_stringToMessageData___closed__0;
x_10 = lean_alloc_ctor(9, 3, 0);
lean_ctor_set(x_10, 0, x_7);
lean_ctor_set(x_10, 1, x_8);
lean_ctor_set(x_10, 2, x_9);
return x_10;
}
}
LEAN_EXPORT lean_object* l_Lean_toTraceElem(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_toTraceElem___redArg(x_2, x_3, x_4);
return x_5;
}
}
lean_object* initialize_Init_Data_Slice_Array(uint8_t builtin);
lean_object* initialize_Lean_Util_PPExt(uint8_t builtin);
lean_object* initialize_Lean_Util_Sorry(uint8_t builtin);
lean_object* initialize_Init_Data_String_Search(uint8_t builtin);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Message(uint8_t builtin) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Init_Data_Slice_Array(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Util_PPExt(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Lean_Util_Sorry(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
res = initialize_Init_Data_String_Search(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_mkErrorStringWithPos___closed__0 = _init_l_Lean_mkErrorStringWithPos___closed__0();
lean_mark_persistent(l_Lean_mkErrorStringWithPos___closed__0);
l_Lean_mkErrorStringWithPos___closed__1 = _init_l_Lean_mkErrorStringWithPos___closed__1();
lean_mark_persistent(l_Lean_mkErrorStringWithPos___closed__1);
l_Lean_mkErrorStringWithPos___closed__2 = _init_l_Lean_mkErrorStringWithPos___closed__2();
lean_mark_persistent(l_Lean_mkErrorStringWithPos___closed__2);
l_Lean_mkErrorStringWithPos___closed__3 = _init_l_Lean_mkErrorStringWithPos___closed__3();
lean_mark_persistent(l_Lean_mkErrorStringWithPos___closed__3);
l_Lean_mkErrorStringWithPos___closed__4 = _init_l_Lean_mkErrorStringWithPos___closed__4();
lean_mark_persistent(l_Lean_mkErrorStringWithPos___closed__4);
l_Lean_mkErrorStringWithPos___closed__5 = _init_l_Lean_mkErrorStringWithPos___closed__5();
lean_mark_persistent(l_Lean_mkErrorStringWithPos___closed__5);
l_Lean_instInhabitedMessageSeverity_default = _init_l_Lean_instInhabitedMessageSeverity_default();
l_Lean_instInhabitedMessageSeverity = _init_l_Lean_instInhabitedMessageSeverity();
l_Lean_instBEqMessageSeverity___closed__0 = _init_l_Lean_instBEqMessageSeverity___closed__0();
lean_mark_persistent(l_Lean_instBEqMessageSeverity___closed__0);
l_Lean_instBEqMessageSeverity = _init_l_Lean_instBEqMessageSeverity();
lean_mark_persistent(l_Lean_instBEqMessageSeverity);
l_Lean_instToJsonMessageSeverity_toJson___closed__0 = _init_l_Lean_instToJsonMessageSeverity_toJson___closed__0();
lean_mark_persistent(l_Lean_instToJsonMessageSeverity_toJson___closed__0);
l_Lean_instToJsonMessageSeverity_toJson___closed__1 = _init_l_Lean_instToJsonMessageSeverity_toJson___closed__1();
lean_mark_persistent(l_Lean_instToJsonMessageSeverity_toJson___closed__1);
l_Lean_instToJsonMessageSeverity_toJson___closed__2 = _init_l_Lean_instToJsonMessageSeverity_toJson___closed__2();
lean_mark_persistent(l_Lean_instToJsonMessageSeverity_toJson___closed__2);
l_Lean_instToJsonMessageSeverity_toJson___closed__3 = _init_l_Lean_instToJsonMessageSeverity_toJson___closed__3();
lean_mark_persistent(l_Lean_instToJsonMessageSeverity_toJson___closed__3);
l_Lean_instToJsonMessageSeverity_toJson___closed__4 = _init_l_Lean_instToJsonMessageSeverity_toJson___closed__4();
lean_mark_persistent(l_Lean_instToJsonMessageSeverity_toJson___closed__4);
l_Lean_instToJsonMessageSeverity_toJson___closed__5 = _init_l_Lean_instToJsonMessageSeverity_toJson___closed__5();
lean_mark_persistent(l_Lean_instToJsonMessageSeverity_toJson___closed__5);
l_Lean_instToJsonMessageSeverity___closed__0 = _init_l_Lean_instToJsonMessageSeverity___closed__0();
lean_mark_persistent(l_Lean_instToJsonMessageSeverity___closed__0);
l_Lean_instToJsonMessageSeverity = _init_l_Lean_instToJsonMessageSeverity();
lean_mark_persistent(l_Lean_instToJsonMessageSeverity);
l_Lean_instFromJsonMessageSeverity_fromJson___lam__0___closed__0 = _init_l_Lean_instFromJsonMessageSeverity_fromJson___lam__0___closed__0();
lean_mark_persistent(l_Lean_instFromJsonMessageSeverity_fromJson___lam__0___closed__0);
l_Lean_instFromJsonMessageSeverity_fromJson___lam__0___closed__1 = _init_l_Lean_instFromJsonMessageSeverity_fromJson___lam__0___closed__1();
lean_mark_persistent(l_Lean_instFromJsonMessageSeverity_fromJson___lam__0___closed__1);
l_Lean_instFromJsonMessageSeverity_fromJson___lam__1___closed__0 = _init_l_Lean_instFromJsonMessageSeverity_fromJson___lam__1___closed__0();
lean_mark_persistent(l_Lean_instFromJsonMessageSeverity_fromJson___lam__1___closed__0);
l_Lean_instFromJsonMessageSeverity_fromJson___lam__2___closed__0 = _init_l_Lean_instFromJsonMessageSeverity_fromJson___lam__2___closed__0();
lean_mark_persistent(l_Lean_instFromJsonMessageSeverity_fromJson___lam__2___closed__0);
l_Lean_instFromJsonMessageSeverity_fromJson___closed__0 = _init_l_Lean_instFromJsonMessageSeverity_fromJson___closed__0();
lean_mark_persistent(l_Lean_instFromJsonMessageSeverity_fromJson___closed__0);
l_Lean_instFromJsonMessageSeverity_fromJson___closed__1 = _init_l_Lean_instFromJsonMessageSeverity_fromJson___closed__1();
lean_mark_persistent(l_Lean_instFromJsonMessageSeverity_fromJson___closed__1);
l_Lean_instFromJsonMessageSeverity_fromJson___closed__2 = _init_l_Lean_instFromJsonMessageSeverity_fromJson___closed__2();
lean_mark_persistent(l_Lean_instFromJsonMessageSeverity_fromJson___closed__2);
l_Lean_instFromJsonMessageSeverity___closed__0 = _init_l_Lean_instFromJsonMessageSeverity___closed__0();
lean_mark_persistent(l_Lean_instFromJsonMessageSeverity___closed__0);
l_Lean_instFromJsonMessageSeverity = _init_l_Lean_instFromJsonMessageSeverity();
lean_mark_persistent(l_Lean_instFromJsonMessageSeverity);
l_Lean_instToStringMessageSeverity___closed__0 = _init_l_Lean_instToStringMessageSeverity___closed__0();
lean_mark_persistent(l_Lean_instToStringMessageSeverity___closed__0);
l_Lean_instToStringMessageSeverity = _init_l_Lean_instToStringMessageSeverity();
lean_mark_persistent(l_Lean_instToStringMessageSeverity);
l_Lean_instInhabitedMessageData_default___closed__0 = _init_l_Lean_instInhabitedMessageData_default___closed__0();
lean_mark_persistent(l_Lean_instInhabitedMessageData_default___closed__0);
l_Lean_instInhabitedMessageData_default___closed__1 = _init_l_Lean_instInhabitedMessageData_default___closed__1();
lean_mark_persistent(l_Lean_instInhabitedMessageData_default___closed__1);
l_Lean_instInhabitedMessageData_default = _init_l_Lean_instInhabitedMessageData_default();
lean_mark_persistent(l_Lean_instInhabitedMessageData_default);
l_Lean_instInhabitedMessageData = _init_l_Lean_instInhabitedMessageData();
lean_mark_persistent(l_Lean_instInhabitedMessageData);
l_Lean_instImpl___closed__0_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_ = _init_l_Lean_instImpl___closed__0_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_();
lean_mark_persistent(l_Lean_instImpl___closed__0_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_);
l_Lean_instImpl___closed__1_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_ = _init_l_Lean_instImpl___closed__1_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_();
lean_mark_persistent(l_Lean_instImpl___closed__1_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_);
l_Lean_instImpl___closed__2_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_ = _init_l_Lean_instImpl___closed__2_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_();
lean_mark_persistent(l_Lean_instImpl___closed__2_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_);
l_Lean_instImpl_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_ = _init_l_Lean_instImpl_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_();
lean_mark_persistent(l_Lean_instImpl_00___x40_Lean_Message_4238524789____hygCtx___hyg_256_);
l_Lean_instTypeNameMessageData = _init_l_Lean_instTypeNameMessageData();
lean_mark_persistent(l_Lean_instTypeNameMessageData);
l_Lean_MessageData_nil___closed__0 = _init_l_Lean_MessageData_nil___closed__0();
lean_mark_persistent(l_Lean_MessageData_nil___closed__0);
l_Lean_MessageData_nil = _init_l_Lean_MessageData_nil();
lean_mark_persistent(l_Lean_MessageData_nil);
l_Lean_MessageData_ofLevel___closed__0 = _init_l_Lean_MessageData_ofLevel___closed__0();
lean_mark_persistent(l_Lean_MessageData_ofLevel___closed__0);
l_Lean_MessageData_ofConstName___lam__1___closed__0 = _init_l_Lean_MessageData_ofConstName___lam__1___closed__0();
lean_mark_persistent(l_Lean_MessageData_ofConstName___lam__1___closed__0);
l_Lean_MessageData_ofConstName___lam__1___closed__1 = _init_l_Lean_MessageData_ofConstName___lam__1___closed__1();
lean_mark_persistent(l_Lean_MessageData_ofConstName___lam__1___closed__1);
l_Lean_MessageData_ofConstName___lam__1___closed__2 = _init_l_Lean_MessageData_ofConstName___lam__1___closed__2();
lean_mark_persistent(l_Lean_MessageData_ofConstName___lam__1___closed__2);
l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit___closed__0 = _init_l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit___closed__0();
lean_mark_persistent(l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit___closed__0);
l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit___closed__1 = _init_l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit___closed__1();
lean_mark_persistent(l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit___closed__1);
l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit___closed__2 = _init_l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit___closed__2();
lean_mark_persistent(l___private_Lean_Message_0__Lean_MessageData_hasSyntheticSorry_visit___closed__2);
l_Lean_MessageData_initFn___closed__0_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_ = _init_l_Lean_MessageData_initFn___closed__0_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_();
lean_mark_persistent(l_Lean_MessageData_initFn___closed__0_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_);
l_Lean_MessageData_initFn___closed__1_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_ = _init_l_Lean_MessageData_initFn___closed__1_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_();
lean_mark_persistent(l_Lean_MessageData_initFn___closed__1_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_);
l_Lean_MessageData_initFn___closed__2_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_ = _init_l_Lean_MessageData_initFn___closed__2_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_();
lean_mark_persistent(l_Lean_MessageData_initFn___closed__2_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_);
l_Lean_MessageData_initFn___closed__3_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_ = _init_l_Lean_MessageData_initFn___closed__3_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_();
lean_mark_persistent(l_Lean_MessageData_initFn___closed__3_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_);
l_Lean_MessageData_initFn___closed__4_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_ = _init_l_Lean_MessageData_initFn___closed__4_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_();
lean_mark_persistent(l_Lean_MessageData_initFn___closed__4_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_);
res = l_Lean_MessageData_initFn_00___x40_Lean_Message_1084813479____hygCtx___hyg_4_();
if (lean_io_result_is_error(res)) return res;
l_Lean_MessageData_maxTraceChildren = lean_io_result_get_value(res);
lean_mark_persistent(l_Lean_MessageData_maxTraceChildren);
lean_dec_ref(res);
l_panic___at___00Lean_MessageData_formatAux_spec__4___closed__0 = _init_l_panic___at___00Lean_MessageData_formatAux_spec__4___closed__0();
lean_mark_persistent(l_panic___at___00Lean_MessageData_formatAux_spec__4___closed__0);
l_Lean_MessageData_formatAux___closed__0 = _init_l_Lean_MessageData_formatAux___closed__0();
lean_mark_persistent(l_Lean_MessageData_formatAux___closed__0);
l_Lean_MessageData_formatAux___closed__1 = _init_l_Lean_MessageData_formatAux___closed__1();
lean_mark_persistent(l_Lean_MessageData_formatAux___closed__1);
l_Lean_MessageData_formatAux___closed__2 = _init_l_Lean_MessageData_formatAux___closed__2();
lean_mark_persistent(l_Lean_MessageData_formatAux___closed__2);
l_Lean_MessageData_formatAux___closed__3 = _init_l_Lean_MessageData_formatAux___closed__3();
lean_mark_persistent(l_Lean_MessageData_formatAux___closed__3);
l_Lean_MessageData_formatAux___closed__4 = _init_l_Lean_MessageData_formatAux___closed__4();
lean_mark_persistent(l_Lean_MessageData_formatAux___closed__4);
l_Lean_MessageData_formatAux___closed__5 = _init_l_Lean_MessageData_formatAux___closed__5();
lean_mark_persistent(l_Lean_MessageData_formatAux___closed__5);
l_Lean_MessageData_formatAux___closed__6 = _init_l_Lean_MessageData_formatAux___closed__6();
lean_mark_persistent(l_Lean_MessageData_formatAux___closed__6);
l_Lean_MessageData_formatAux___closed__7 = _init_l_Lean_MessageData_formatAux___closed__7();
lean_mark_persistent(l_Lean_MessageData_formatAux___closed__7);
l_Lean_MessageData_formatAux___closed__8 = _init_l_Lean_MessageData_formatAux___closed__8();
lean_mark_persistent(l_Lean_MessageData_formatAux___closed__8);
l_Lean_MessageData_formatAux___closed__9 = _init_l_Lean_MessageData_formatAux___closed__9();
lean_mark_persistent(l_Lean_MessageData_formatAux___closed__9);
l_Lean_MessageData_formatAux___closed__10 = _init_l_Lean_MessageData_formatAux___closed__10();
l_Lean_MessageData_formatAux___closed__11 = _init_l_Lean_MessageData_formatAux___closed__11();
lean_mark_persistent(l_Lean_MessageData_formatAux___closed__11);
l_Lean_MessageData_formatAux___closed__12 = _init_l_Lean_MessageData_formatAux___closed__12();
lean_mark_persistent(l_Lean_MessageData_formatAux___closed__12);
l_Lean_MessageData_formatAux___closed__13 = _init_l_Lean_MessageData_formatAux___closed__13();
lean_mark_persistent(l_Lean_MessageData_formatAux___closed__13);
l_Lean_MessageData_format___closed__0 = _init_l_Lean_MessageData_format___closed__0();
lean_mark_persistent(l_Lean_MessageData_format___closed__0);
l_Lean_MessageData_toString___closed__0 = _init_l_Lean_MessageData_toString___closed__0();
lean_mark_persistent(l_Lean_MessageData_toString___closed__0);
l_Lean_MessageData_instAppend = _init_l_Lean_MessageData_instAppend();
lean_mark_persistent(l_Lean_MessageData_instAppend);
l_Lean_MessageData_instCoeString___closed__0 = _init_l_Lean_MessageData_instCoeString___closed__0();
lean_mark_persistent(l_Lean_MessageData_instCoeString___closed__0);
l_Lean_MessageData_instCoeString = _init_l_Lean_MessageData_instCoeString();
lean_mark_persistent(l_Lean_MessageData_instCoeString);
l_Lean_MessageData_instCoeFormat = _init_l_Lean_MessageData_instCoeFormat();
lean_mark_persistent(l_Lean_MessageData_instCoeFormat);
l_Lean_MessageData_instCoeLevel___closed__0 = _init_l_Lean_MessageData_instCoeLevel___closed__0();
lean_mark_persistent(l_Lean_MessageData_instCoeLevel___closed__0);
l_Lean_MessageData_instCoeLevel = _init_l_Lean_MessageData_instCoeLevel();
lean_mark_persistent(l_Lean_MessageData_instCoeLevel);
l_Lean_MessageData_instCoeExpr___closed__0 = _init_l_Lean_MessageData_instCoeExpr___closed__0();
lean_mark_persistent(l_Lean_MessageData_instCoeExpr___closed__0);
l_Lean_MessageData_instCoeExpr = _init_l_Lean_MessageData_instCoeExpr();
lean_mark_persistent(l_Lean_MessageData_instCoeExpr);
l_Lean_MessageData_instCoeName___closed__0 = _init_l_Lean_MessageData_instCoeName___closed__0();
lean_mark_persistent(l_Lean_MessageData_instCoeName___closed__0);
l_Lean_MessageData_instCoeName = _init_l_Lean_MessageData_instCoeName();
lean_mark_persistent(l_Lean_MessageData_instCoeName);
l_Lean_MessageData_instCoeSyntax___closed__0 = _init_l_Lean_MessageData_instCoeSyntax___closed__0();
lean_mark_persistent(l_Lean_MessageData_instCoeSyntax___closed__0);
l_Lean_MessageData_instCoeSyntax = _init_l_Lean_MessageData_instCoeSyntax();
lean_mark_persistent(l_Lean_MessageData_instCoeSyntax);
l_Lean_MessageData_instCoeMVarId = _init_l_Lean_MessageData_instCoeMVarId();
lean_mark_persistent(l_Lean_MessageData_instCoeMVarId);
l_Lean_MessageData_instCoeOptionExpr___lam__0___closed__0 = _init_l_Lean_MessageData_instCoeOptionExpr___lam__0___closed__0();
lean_mark_persistent(l_Lean_MessageData_instCoeOptionExpr___lam__0___closed__0);
l_Lean_MessageData_instCoeOptionExpr___lam__0___closed__1 = _init_l_Lean_MessageData_instCoeOptionExpr___lam__0___closed__1();
lean_mark_persistent(l_Lean_MessageData_instCoeOptionExpr___lam__0___closed__1);
l_Lean_MessageData_instCoeOptionExpr___lam__0___closed__2 = _init_l_Lean_MessageData_instCoeOptionExpr___lam__0___closed__2();
lean_mark_persistent(l_Lean_MessageData_instCoeOptionExpr___lam__0___closed__2);
l_Lean_MessageData_instCoeOptionExpr = _init_l_Lean_MessageData_instCoeOptionExpr();
lean_mark_persistent(l_Lean_MessageData_instCoeOptionExpr);
l_Lean_MessageData_arrayExpr_toMessageData___closed__0 = _init_l_Lean_MessageData_arrayExpr_toMessageData___closed__0();
lean_mark_persistent(l_Lean_MessageData_arrayExpr_toMessageData___closed__0);
l_Lean_MessageData_arrayExpr_toMessageData___closed__1 = _init_l_Lean_MessageData_arrayExpr_toMessageData___closed__1();
lean_mark_persistent(l_Lean_MessageData_arrayExpr_toMessageData___closed__1);
l_Lean_MessageData_arrayExpr_toMessageData___closed__2 = _init_l_Lean_MessageData_arrayExpr_toMessageData___closed__2();
lean_mark_persistent(l_Lean_MessageData_arrayExpr_toMessageData___closed__2);
l_Lean_MessageData_arrayExpr_toMessageData___closed__3 = _init_l_Lean_MessageData_arrayExpr_toMessageData___closed__3();
lean_mark_persistent(l_Lean_MessageData_arrayExpr_toMessageData___closed__3);
l_Lean_MessageData_instCoeArrayExpr___lam__0___closed__0 = _init_l_Lean_MessageData_instCoeArrayExpr___lam__0___closed__0();
lean_mark_persistent(l_Lean_MessageData_instCoeArrayExpr___lam__0___closed__0);
l_Lean_MessageData_instCoeArrayExpr___lam__0___closed__1 = _init_l_Lean_MessageData_instCoeArrayExpr___lam__0___closed__1();
lean_mark_persistent(l_Lean_MessageData_instCoeArrayExpr___lam__0___closed__1);
l_Lean_MessageData_instCoeArrayExpr___lam__0___closed__2 = _init_l_Lean_MessageData_instCoeArrayExpr___lam__0___closed__2();
lean_mark_persistent(l_Lean_MessageData_instCoeArrayExpr___lam__0___closed__2);
l_Lean_MessageData_instCoeArrayExpr = _init_l_Lean_MessageData_instCoeArrayExpr();
lean_mark_persistent(l_Lean_MessageData_instCoeArrayExpr);
l_Lean_MessageData_ofList___closed__0 = _init_l_Lean_MessageData_ofList___closed__0();
lean_mark_persistent(l_Lean_MessageData_ofList___closed__0);
l_Lean_MessageData_ofList___closed__1 = _init_l_Lean_MessageData_ofList___closed__1();
lean_mark_persistent(l_Lean_MessageData_ofList___closed__1);
l_Lean_MessageData_ofList___closed__2 = _init_l_Lean_MessageData_ofList___closed__2();
lean_mark_persistent(l_Lean_MessageData_ofList___closed__2);
l_Lean_MessageData_ofList___closed__3 = _init_l_Lean_MessageData_ofList___closed__3();
lean_mark_persistent(l_Lean_MessageData_ofList___closed__3);
l_Lean_MessageData_ofList___closed__4 = _init_l_Lean_MessageData_ofList___closed__4();
lean_mark_persistent(l_Lean_MessageData_ofList___closed__4);
l_Lean_MessageData_ofList___closed__5 = _init_l_Lean_MessageData_ofList___closed__5();
lean_mark_persistent(l_Lean_MessageData_ofList___closed__5);
l_Lean_MessageData_ofList___closed__6 = _init_l_Lean_MessageData_ofList___closed__6();
lean_mark_persistent(l_Lean_MessageData_ofList___closed__6);
l_Lean_MessageData_ofList___closed__7 = _init_l_Lean_MessageData_ofList___closed__7();
lean_mark_persistent(l_Lean_MessageData_ofList___closed__7);
l_Lean_MessageData_orList___closed__0 = _init_l_Lean_MessageData_orList___closed__0();
lean_mark_persistent(l_Lean_MessageData_orList___closed__0);
l_Lean_MessageData_orList___closed__1 = _init_l_Lean_MessageData_orList___closed__1();
lean_mark_persistent(l_Lean_MessageData_orList___closed__1);
l_Lean_MessageData_orList___closed__2 = _init_l_Lean_MessageData_orList___closed__2();
lean_mark_persistent(l_Lean_MessageData_orList___closed__2);
l_Lean_MessageData_orList___closed__3 = _init_l_Lean_MessageData_orList___closed__3();
lean_mark_persistent(l_Lean_MessageData_orList___closed__3);
l_Lean_MessageData_orList___closed__4 = _init_l_Lean_MessageData_orList___closed__4();
lean_mark_persistent(l_Lean_MessageData_orList___closed__4);
l_Lean_MessageData_orList___closed__5 = _init_l_Lean_MessageData_orList___closed__5();
lean_mark_persistent(l_Lean_MessageData_orList___closed__5);
l_Lean_MessageData_orList___closed__6 = _init_l_Lean_MessageData_orList___closed__6();
lean_mark_persistent(l_Lean_MessageData_orList___closed__6);
l_Lean_MessageData_orList___closed__7 = _init_l_Lean_MessageData_orList___closed__7();
lean_mark_persistent(l_Lean_MessageData_orList___closed__7);
l_Lean_MessageData_orList___closed__8 = _init_l_Lean_MessageData_orList___closed__8();
lean_mark_persistent(l_Lean_MessageData_orList___closed__8);
l_Lean_MessageData_andList___closed__0 = _init_l_Lean_MessageData_andList___closed__0();
lean_mark_persistent(l_Lean_MessageData_andList___closed__0);
l_Lean_MessageData_andList___closed__1 = _init_l_Lean_MessageData_andList___closed__1();
lean_mark_persistent(l_Lean_MessageData_andList___closed__1);
l_Lean_MessageData_andList___closed__2 = _init_l_Lean_MessageData_andList___closed__2();
lean_mark_persistent(l_Lean_MessageData_andList___closed__2);
l_Lean_MessageData_andList___closed__3 = _init_l_Lean_MessageData_andList___closed__3();
lean_mark_persistent(l_Lean_MessageData_andList___closed__3);
l_Lean_MessageData_andList___closed__4 = _init_l_Lean_MessageData_andList___closed__4();
lean_mark_persistent(l_Lean_MessageData_andList___closed__4);
l_Lean_MessageData_andList___closed__5 = _init_l_Lean_MessageData_andList___closed__5();
lean_mark_persistent(l_Lean_MessageData_andList___closed__5);
l_Lean_MessageData_note___closed__0 = _init_l_Lean_MessageData_note___closed__0();
lean_mark_persistent(l_Lean_MessageData_note___closed__0);
l_Lean_MessageData_note___closed__1 = _init_l_Lean_MessageData_note___closed__1();
lean_mark_persistent(l_Lean_MessageData_note___closed__1);
l_Lean_MessageData_note___closed__2 = _init_l_Lean_MessageData_note___closed__2();
lean_mark_persistent(l_Lean_MessageData_note___closed__2);
l_Lean_MessageData_note___closed__3 = _init_l_Lean_MessageData_note___closed__3();
lean_mark_persistent(l_Lean_MessageData_note___closed__3);
l_Lean_MessageData_note___closed__4 = _init_l_Lean_MessageData_note___closed__4();
lean_mark_persistent(l_Lean_MessageData_note___closed__4);
l_Lean_MessageData_hint_x27___closed__0 = _init_l_Lean_MessageData_hint_x27___closed__0();
lean_mark_persistent(l_Lean_MessageData_hint_x27___closed__0);
l_Lean_MessageData_hint_x27___closed__1 = _init_l_Lean_MessageData_hint_x27___closed__1();
lean_mark_persistent(l_Lean_MessageData_hint_x27___closed__1);
l_Lean_MessageData_hint_x27___closed__2 = _init_l_Lean_MessageData_hint_x27___closed__2();
lean_mark_persistent(l_Lean_MessageData_hint_x27___closed__2);
l_Lean_MessageData_hint_x27___closed__3 = _init_l_Lean_MessageData_hint_x27___closed__3();
lean_mark_persistent(l_Lean_MessageData_hint_x27___closed__3);
l_Lean_MessageData_instCoeList___closed__0 = _init_l_Lean_MessageData_instCoeList___closed__0();
lean_mark_persistent(l_Lean_MessageData_instCoeList___closed__0);
l_Lean_MessageData_instCoeList = _init_l_Lean_MessageData_instCoeList();
lean_mark_persistent(l_Lean_MessageData_instCoeList);
l_Lean_MessageData_instCoeListExpr = _init_l_Lean_MessageData_instCoeListExpr();
lean_mark_persistent(l_Lean_MessageData_instCoeListExpr);
l_Lean_instInhabitedBaseMessage_default___redArg___closed__0 = _init_l_Lean_instInhabitedBaseMessage_default___redArg___closed__0();
lean_mark_persistent(l_Lean_instInhabitedBaseMessage_default___redArg___closed__0);
l_Lean_instToJsonBaseMessage_toJson___redArg___closed__0 = _init_l_Lean_instToJsonBaseMessage_toJson___redArg___closed__0();
lean_mark_persistent(l_Lean_instToJsonBaseMessage_toJson___redArg___closed__0);
l_Lean_instToJsonBaseMessage_toJson___redArg___closed__1 = _init_l_Lean_instToJsonBaseMessage_toJson___redArg___closed__1();
lean_mark_persistent(l_Lean_instToJsonBaseMessage_toJson___redArg___closed__1);
l_Lean_instToJsonBaseMessage_toJson___redArg___closed__2 = _init_l_Lean_instToJsonBaseMessage_toJson___redArg___closed__2();
lean_mark_persistent(l_Lean_instToJsonBaseMessage_toJson___redArg___closed__2);
l_Lean_instToJsonBaseMessage_toJson___redArg___closed__3 = _init_l_Lean_instToJsonBaseMessage_toJson___redArg___closed__3();
lean_mark_persistent(l_Lean_instToJsonBaseMessage_toJson___redArg___closed__3);
l_Lean_instToJsonBaseMessage_toJson___redArg___closed__4 = _init_l_Lean_instToJsonBaseMessage_toJson___redArg___closed__4();
lean_mark_persistent(l_Lean_instToJsonBaseMessage_toJson___redArg___closed__4);
l_Lean_instToJsonBaseMessage_toJson___redArg___closed__5 = _init_l_Lean_instToJsonBaseMessage_toJson___redArg___closed__5();
lean_mark_persistent(l_Lean_instToJsonBaseMessage_toJson___redArg___closed__5);
l_Lean_instToJsonBaseMessage_toJson___redArg___closed__6 = _init_l_Lean_instToJsonBaseMessage_toJson___redArg___closed__6();
lean_mark_persistent(l_Lean_instToJsonBaseMessage_toJson___redArg___closed__6);
l_Lean_instToJsonBaseMessage_toJson___redArg___closed__7 = _init_l_Lean_instToJsonBaseMessage_toJson___redArg___closed__7();
lean_mark_persistent(l_Lean_instToJsonBaseMessage_toJson___redArg___closed__7);
l_Lean_instToJsonBaseMessage_toJson___redArg___closed__8 = _init_l_Lean_instToJsonBaseMessage_toJson___redArg___closed__8();
lean_mark_persistent(l_Lean_instToJsonBaseMessage_toJson___redArg___closed__8);
l_Lean_instToJsonBaseMessage_toJson___redArg___closed__9 = _init_l_Lean_instToJsonBaseMessage_toJson___redArg___closed__9();
lean_mark_persistent(l_Lean_instToJsonBaseMessage_toJson___redArg___closed__9);
l_Lean_instToJsonBaseMessage_toJson___redArg___closed__10 = _init_l_Lean_instToJsonBaseMessage_toJson___redArg___closed__10();
lean_mark_persistent(l_Lean_instToJsonBaseMessage_toJson___redArg___closed__10);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__0 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__0();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__0);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__9 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__9();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__9);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__6 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__6();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__6);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__7 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__7();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__7);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__4 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__4();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__4);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__1 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__1();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__1);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__2 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__2();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__2);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__3 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__3();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__3);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__5 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__5();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__5);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__8 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__8();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__8);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__10 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__10();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__10);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__11 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__11();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__11);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__12 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__12();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__12);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__13 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__13();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__13);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__14 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__14();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__14);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__15 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__15();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__15);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__16 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__16();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__16);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__17 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__17();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__17);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__18 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__18();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__18);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__19 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__19();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__19);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__20 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__20();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__20);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__21 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__21();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__21);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__22 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__22();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__22);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__23 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__23();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__23);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__24 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__24();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__24);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__25 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__25();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__25);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__26 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__26();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__26);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__27 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__27();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__27);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__28 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__28();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__28);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__29 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__29();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__29);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__30 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__30();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__30);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__31 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__31();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__31);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__32 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__32();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__32);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__33 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__33();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__33);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__34 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__34();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__34);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__35 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__35();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__35);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__36 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__36();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__36);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__37 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__37();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__37);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__38 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__38();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__38);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__39 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__39();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__39);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__40 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__40();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__40);
l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__41 = _init_l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__41();
lean_mark_persistent(l_Lean_instFromJsonBaseMessage_fromJson___redArg___closed__41);
l_Lean_instToJsonSerialMessage_toJson___closed__0 = _init_l_Lean_instToJsonSerialMessage_toJson___closed__0();
lean_mark_persistent(l_Lean_instToJsonSerialMessage_toJson___closed__0);
l_Lean_instToJsonSerialMessage___closed__0 = _init_l_Lean_instToJsonSerialMessage___closed__0();
lean_mark_persistent(l_Lean_instToJsonSerialMessage___closed__0);
l_Lean_instToJsonSerialMessage = _init_l_Lean_instToJsonSerialMessage();
lean_mark_persistent(l_Lean_instToJsonSerialMessage);
l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__2_spec__2___closed__0 = _init_l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__2_spec__2___closed__0();
lean_mark_persistent(l_Option_fromJson_x3f___at___00Lean_Json_getObjValAs_x3f___at___00Lean_instFromJsonSerialMessage_fromJson_spec__2_spec__2___closed__0);
l_Lean_instFromJsonSerialMessage_fromJson___closed__0 = _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__0();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage_fromJson___closed__0);
l_Lean_instFromJsonSerialMessage_fromJson___closed__1 = _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__1();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage_fromJson___closed__1);
l_Lean_instFromJsonSerialMessage_fromJson___closed__2 = _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__2();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage_fromJson___closed__2);
l_Lean_instFromJsonSerialMessage_fromJson___closed__3 = _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__3();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage_fromJson___closed__3);
l_Lean_instFromJsonSerialMessage_fromJson___closed__4 = _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__4();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage_fromJson___closed__4);
l_Lean_instFromJsonSerialMessage_fromJson___closed__5 = _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__5();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage_fromJson___closed__5);
l_Lean_instFromJsonSerialMessage_fromJson___closed__6 = _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__6();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage_fromJson___closed__6);
l_Lean_instFromJsonSerialMessage_fromJson___closed__7 = _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__7();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage_fromJson___closed__7);
l_Lean_instFromJsonSerialMessage_fromJson___closed__8 = _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__8();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage_fromJson___closed__8);
l_Lean_instFromJsonSerialMessage_fromJson___closed__9 = _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__9();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage_fromJson___closed__9);
l_Lean_instFromJsonSerialMessage_fromJson___closed__10 = _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__10();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage_fromJson___closed__10);
l_Lean_instFromJsonSerialMessage_fromJson___closed__11 = _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__11();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage_fromJson___closed__11);
l_Lean_instFromJsonSerialMessage_fromJson___closed__12 = _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__12();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage_fromJson___closed__12);
l_Lean_instFromJsonSerialMessage_fromJson___closed__13 = _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__13();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage_fromJson___closed__13);
l_Lean_instFromJsonSerialMessage_fromJson___closed__14 = _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__14();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage_fromJson___closed__14);
l_Lean_instFromJsonSerialMessage_fromJson___closed__15 = _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__15();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage_fromJson___closed__15);
l_Lean_instFromJsonSerialMessage_fromJson___closed__16 = _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__16();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage_fromJson___closed__16);
l_Lean_instFromJsonSerialMessage_fromJson___closed__17 = _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__17();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage_fromJson___closed__17);
l_Lean_instFromJsonSerialMessage_fromJson___closed__18 = _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__18();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage_fromJson___closed__18);
l_Lean_instFromJsonSerialMessage_fromJson___closed__19 = _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__19();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage_fromJson___closed__19);
l_Lean_instFromJsonSerialMessage_fromJson___closed__20 = _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__20();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage_fromJson___closed__20);
l_Lean_instFromJsonSerialMessage_fromJson___closed__21 = _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__21();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage_fromJson___closed__21);
l_Lean_instFromJsonSerialMessage_fromJson___closed__22 = _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__22();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage_fromJson___closed__22);
l_Lean_instFromJsonSerialMessage_fromJson___closed__23 = _init_l_Lean_instFromJsonSerialMessage_fromJson___closed__23();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage_fromJson___closed__23);
l_Lean_instFromJsonSerialMessage___closed__0 = _init_l_Lean_instFromJsonSerialMessage___closed__0();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage___closed__0);
l_Lean_instFromJsonSerialMessage = _init_l_Lean_instFromJsonSerialMessage();
lean_mark_persistent(l_Lean_instFromJsonSerialMessage);
l_Lean_errorNameSuffix___closed__0 = _init_l_Lean_errorNameSuffix___closed__0();
lean_mark_persistent(l_Lean_errorNameSuffix___closed__0);
l_Lean_errorNameSuffix = _init_l_Lean_errorNameSuffix();
lean_mark_persistent(l_Lean_errorNameSuffix);
l_Lean_SerialMessage_toString___closed__0 = _init_l_Lean_SerialMessage_toString___closed__0();
lean_mark_persistent(l_Lean_SerialMessage_toString___closed__0);
l_Lean_SerialMessage_toString___closed__1 = _init_l_Lean_SerialMessage_toString___closed__1();
lean_mark_persistent(l_Lean_SerialMessage_toString___closed__1);
l_Lean_SerialMessage_toString___closed__2 = _init_l_Lean_SerialMessage_toString___closed__2();
lean_mark_persistent(l_Lean_SerialMessage_toString___closed__2);
l_Lean_SerialMessage_instToString = _init_l_Lean_SerialMessage_instToString();
lean_mark_persistent(l_Lean_SerialMessage_instToString);
l_Lean_instInhabitedMessageLog_default___closed__0 = _init_l_Lean_instInhabitedMessageLog_default___closed__0();
lean_mark_persistent(l_Lean_instInhabitedMessageLog_default___closed__0);
l_Lean_instInhabitedMessageLog_default___closed__1 = _init_l_Lean_instInhabitedMessageLog_default___closed__1();
lean_mark_persistent(l_Lean_instInhabitedMessageLog_default___closed__1);
l_Lean_instInhabitedMessageLog_default___closed__2 = _init_l_Lean_instInhabitedMessageLog_default___closed__2();
lean_mark_persistent(l_Lean_instInhabitedMessageLog_default___closed__2);
l_Lean_instInhabitedMessageLog_default = _init_l_Lean_instInhabitedMessageLog_default();
lean_mark_persistent(l_Lean_instInhabitedMessageLog_default);
l_Lean_instInhabitedMessageLog = _init_l_Lean_instInhabitedMessageLog();
lean_mark_persistent(l_Lean_instInhabitedMessageLog);
l_Lean_MessageLog_empty___closed__0 = _init_l_Lean_MessageLog_empty___closed__0();
lean_mark_persistent(l_Lean_MessageLog_empty___closed__0);
l_Lean_MessageLog_empty___closed__1 = _init_l_Lean_MessageLog_empty___closed__1();
lean_mark_persistent(l_Lean_MessageLog_empty___closed__1);
l_Lean_MessageLog_empty___closed__2 = _init_l_Lean_MessageLog_empty___closed__2();
lean_mark_persistent(l_Lean_MessageLog_empty___closed__2);
l_Lean_MessageLog_empty___closed__3 = _init_l_Lean_MessageLog_empty___closed__3();
lean_mark_persistent(l_Lean_MessageLog_empty___closed__3);
l_Lean_MessageLog_empty = _init_l_Lean_MessageLog_empty();
lean_mark_persistent(l_Lean_MessageLog_empty);
l_Std_DTreeMap_Internal_Impl_Const_alter___at___00Lean_MessageLog_append_spec__0___redArg___lam__0___closed__0 = _init_l_Std_DTreeMap_Internal_Impl_Const_alter___at___00Lean_MessageLog_append_spec__0___redArg___lam__0___closed__0();
lean_mark_persistent(l_Std_DTreeMap_Internal_Impl_Const_alter___at___00Lean_MessageLog_append_spec__0___redArg___lam__0___closed__0);
l_Lean_MessageLog_instAppend___closed__0 = _init_l_Lean_MessageLog_instAppend___closed__0();
lean_mark_persistent(l_Lean_MessageLog_instAppend___closed__0);
l_Lean_MessageLog_instAppend = _init_l_Lean_MessageLog_instAppend();
lean_mark_persistent(l_Lean_MessageLog_instAppend);
l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0___closed__0 = _init_l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0___closed__0();
lean_mark_persistent(l___private_Lean_Data_PersistentArray_0__Lean_PersistentArray_foldlFromMAux___at___00Lean_PersistentArray_foldlM___at___00Lean_MessageLog_getInfoMessages_spec__0_spec__0___closed__0);
l_Lean_inlineExpr___lam__0___closed__0 = _init_l_Lean_inlineExpr___lam__0___closed__0();
lean_mark_persistent(l_Lean_inlineExpr___lam__0___closed__0);
l_Lean_inlineExpr___lam__0___closed__1 = _init_l_Lean_inlineExpr___lam__0___closed__1();
lean_mark_persistent(l_Lean_inlineExpr___lam__0___closed__1);
l_Lean_inlineExpr___lam__0___closed__2 = _init_l_Lean_inlineExpr___lam__0___closed__2();
lean_mark_persistent(l_Lean_inlineExpr___lam__0___closed__2);
l_Lean_inlineExpr___lam__0___closed__3 = _init_l_Lean_inlineExpr___lam__0___closed__3();
lean_mark_persistent(l_Lean_inlineExpr___lam__0___closed__3);
l_Lean_inlineExpr___lam__0___closed__4 = _init_l_Lean_inlineExpr___lam__0___closed__4();
lean_mark_persistent(l_Lean_inlineExpr___lam__0___closed__4);
l_Lean_inlineExpr___lam__0___closed__5 = _init_l_Lean_inlineExpr___lam__0___closed__5();
lean_mark_persistent(l_Lean_inlineExpr___lam__0___closed__5);
l_Lean_inlineExpr___lam__0___closed__6 = _init_l_Lean_inlineExpr___lam__0___closed__6();
lean_mark_persistent(l_Lean_inlineExpr___lam__0___closed__6);
l_Lean_inlineExprTrailing___lam__0___closed__0 = _init_l_Lean_inlineExprTrailing___lam__0___closed__0();
lean_mark_persistent(l_Lean_inlineExprTrailing___lam__0___closed__0);
l_Lean_inlineExprTrailing___lam__0___closed__1 = _init_l_Lean_inlineExprTrailing___lam__0___closed__1();
lean_mark_persistent(l_Lean_inlineExprTrailing___lam__0___closed__1);
l_Lean_inlineExprTrailing___lam__0___closed__2 = _init_l_Lean_inlineExprTrailing___lam__0___closed__2();
lean_mark_persistent(l_Lean_inlineExprTrailing___lam__0___closed__2);
l_Lean_aquote___closed__0 = _init_l_Lean_aquote___closed__0();
lean_mark_persistent(l_Lean_aquote___closed__0);
l_Lean_aquote___closed__1 = _init_l_Lean_aquote___closed__1();
lean_mark_persistent(l_Lean_aquote___closed__1);
l_Lean_aquote___closed__2 = _init_l_Lean_aquote___closed__2();
lean_mark_persistent(l_Lean_aquote___closed__2);
l_Lean_aquote___closed__3 = _init_l_Lean_aquote___closed__3();
lean_mark_persistent(l_Lean_aquote___closed__3);
l_Lean_aquote___closed__4 = _init_l_Lean_aquote___closed__4();
lean_mark_persistent(l_Lean_aquote___closed__4);
l_Lean_aquote___closed__5 = _init_l_Lean_aquote___closed__5();
lean_mark_persistent(l_Lean_aquote___closed__5);
l_Lean_addMessageContextPartial___redArg___lam__0___closed__0 = _init_l_Lean_addMessageContextPartial___redArg___lam__0___closed__0();
lean_mark_persistent(l_Lean_addMessageContextPartial___redArg___lam__0___closed__0);
l_Lean_addMessageContextPartial___redArg___lam__0___closed__1 = _init_l_Lean_addMessageContextPartial___redArg___lam__0___closed__1();
lean_mark_persistent(l_Lean_addMessageContextPartial___redArg___lam__0___closed__1);
l_Lean_addMessageContextPartial___redArg___lam__0___closed__2 = _init_l_Lean_addMessageContextPartial___redArg___lam__0___closed__2();
lean_mark_persistent(l_Lean_addMessageContextPartial___redArg___lam__0___closed__2);
l_Lean_addMessageContextPartial___redArg___lam__0___closed__3 = _init_l_Lean_addMessageContextPartial___redArg___lam__0___closed__3();
lean_mark_persistent(l_Lean_addMessageContextPartial___redArg___lam__0___closed__3);
l_String_Slice_split___at___00Lean_stringToMessageData_spec__0___closed__0 = _init_l_String_Slice_split___at___00Lean_stringToMessageData_spec__0___closed__0();
lean_mark_persistent(l_String_Slice_split___at___00Lean_stringToMessageData_spec__0___closed__0);
l_Lean_stringToMessageData___closed__0 = _init_l_Lean_stringToMessageData___closed__0();
lean_mark_persistent(l_Lean_stringToMessageData___closed__0);
l_Lean_instToMessageDataExpr = _init_l_Lean_instToMessageDataExpr();
lean_mark_persistent(l_Lean_instToMessageDataExpr);
l_Lean_instToMessageDataLevel = _init_l_Lean_instToMessageDataLevel();
lean_mark_persistent(l_Lean_instToMessageDataLevel);
l_Lean_instToMessageDataName = _init_l_Lean_instToMessageDataName();
lean_mark_persistent(l_Lean_instToMessageDataName);
l_Lean_instToMessageDataString___closed__0 = _init_l_Lean_instToMessageDataString___closed__0();
lean_mark_persistent(l_Lean_instToMessageDataString___closed__0);
l_Lean_instToMessageDataString = _init_l_Lean_instToMessageDataString();
lean_mark_persistent(l_Lean_instToMessageDataString);
l_Lean_instToMessageDataSyntax = _init_l_Lean_instToMessageDataSyntax();
lean_mark_persistent(l_Lean_instToMessageDataSyntax);
l_Lean_instToMessageDataFormat = _init_l_Lean_instToMessageDataFormat();
lean_mark_persistent(l_Lean_instToMessageDataFormat);
l_Lean_instToMessageDataMVarId___closed__0 = _init_l_Lean_instToMessageDataMVarId___closed__0();
lean_mark_persistent(l_Lean_instToMessageDataMVarId___closed__0);
l_Lean_instToMessageDataMVarId = _init_l_Lean_instToMessageDataMVarId();
lean_mark_persistent(l_Lean_instToMessageDataMVarId);
l_Lean_instToMessageDataMessageData___closed__0 = _init_l_Lean_instToMessageDataMessageData___closed__0();
lean_mark_persistent(l_Lean_instToMessageDataMessageData___closed__0);
l_Lean_instToMessageDataMessageData = _init_l_Lean_instToMessageDataMessageData();
lean_mark_persistent(l_Lean_instToMessageDataMessageData);
l_Lean_instToMessageDataSubarray___redArg___closed__6 = _init_l_Lean_instToMessageDataSubarray___redArg___closed__6();
lean_mark_persistent(l_Lean_instToMessageDataSubarray___redArg___closed__6);
l_Lean_instToMessageDataSubarray___redArg___closed__5 = _init_l_Lean_instToMessageDataSubarray___redArg___closed__5();
lean_mark_persistent(l_Lean_instToMessageDataSubarray___redArg___closed__5);
l_Lean_instToMessageDataSubarray___redArg___closed__4 = _init_l_Lean_instToMessageDataSubarray___redArg___closed__4();
lean_mark_persistent(l_Lean_instToMessageDataSubarray___redArg___closed__4);
l_Lean_instToMessageDataSubarray___redArg___closed__3 = _init_l_Lean_instToMessageDataSubarray___redArg___closed__3();
lean_mark_persistent(l_Lean_instToMessageDataSubarray___redArg___closed__3);
l_Lean_instToMessageDataSubarray___redArg___closed__2 = _init_l_Lean_instToMessageDataSubarray___redArg___closed__2();
lean_mark_persistent(l_Lean_instToMessageDataSubarray___redArg___closed__2);
l_Lean_instToMessageDataSubarray___redArg___closed__1 = _init_l_Lean_instToMessageDataSubarray___redArg___closed__1();
lean_mark_persistent(l_Lean_instToMessageDataSubarray___redArg___closed__1);
l_Lean_instToMessageDataSubarray___redArg___closed__0 = _init_l_Lean_instToMessageDataSubarray___redArg___closed__0();
lean_mark_persistent(l_Lean_instToMessageDataSubarray___redArg___closed__0);
l_Lean_instToMessageDataSubarray___redArg___closed__7 = _init_l_Lean_instToMessageDataSubarray___redArg___closed__7();
lean_mark_persistent(l_Lean_instToMessageDataSubarray___redArg___closed__7);
l_Lean_instToMessageDataSubarray___redArg___closed__8 = _init_l_Lean_instToMessageDataSubarray___redArg___closed__8();
lean_mark_persistent(l_Lean_instToMessageDataSubarray___redArg___closed__8);
l_Lean_instToMessageDataSubarray___redArg___closed__9 = _init_l_Lean_instToMessageDataSubarray___redArg___closed__9();
lean_mark_persistent(l_Lean_instToMessageDataSubarray___redArg___closed__9);
l_Lean_instToMessageDataSubarray___redArg___lam__2___closed__0 = _init_l_Lean_instToMessageDataSubarray___redArg___lam__2___closed__0();
lean_mark_persistent(l_Lean_instToMessageDataSubarray___redArg___lam__2___closed__0);
l_Lean_instToMessageDataSubarray___redArg___lam__2___closed__1 = _init_l_Lean_instToMessageDataSubarray___redArg___lam__2___closed__1();
lean_mark_persistent(l_Lean_instToMessageDataSubarray___redArg___lam__2___closed__1);
l_Lean_instToMessageDataOption___redArg___lam__0___closed__0 = _init_l_Lean_instToMessageDataOption___redArg___lam__0___closed__0();
lean_mark_persistent(l_Lean_instToMessageDataOption___redArg___lam__0___closed__0);
l_Lean_instToMessageDataOption___redArg___lam__0___closed__1 = _init_l_Lean_instToMessageDataOption___redArg___lam__0___closed__1();
lean_mark_persistent(l_Lean_instToMessageDataOption___redArg___lam__0___closed__1);
l_Lean_instToMessageDataOption___redArg___lam__0___closed__2 = _init_l_Lean_instToMessageDataOption___redArg___lam__0___closed__2();
lean_mark_persistent(l_Lean_instToMessageDataOption___redArg___lam__0___closed__2);
l_Lean_instToMessageDataOption___redArg___lam__0___closed__3 = _init_l_Lean_instToMessageDataOption___redArg___lam__0___closed__3();
lean_mark_persistent(l_Lean_instToMessageDataOption___redArg___lam__0___closed__3);
l_Lean_instToMessageDataOption___redArg___lam__0___closed__4 = _init_l_Lean_instToMessageDataOption___redArg___lam__0___closed__4();
lean_mark_persistent(l_Lean_instToMessageDataOption___redArg___lam__0___closed__4);
l_Lean_instToMessageDataOptionExpr___lam__0___closed__0 = _init_l_Lean_instToMessageDataOptionExpr___lam__0___closed__0();
lean_mark_persistent(l_Lean_instToMessageDataOptionExpr___lam__0___closed__0);
l_Lean_instToMessageDataOptionExpr___lam__0___closed__1 = _init_l_Lean_instToMessageDataOptionExpr___lam__0___closed__1();
lean_mark_persistent(l_Lean_instToMessageDataOptionExpr___lam__0___closed__1);
l_Lean_instToMessageDataOptionExpr___lam__0___closed__2 = _init_l_Lean_instToMessageDataOptionExpr___lam__0___closed__2();
lean_mark_persistent(l_Lean_instToMessageDataOptionExpr___lam__0___closed__2);
l_Lean_instToMessageDataOptionExpr = _init_l_Lean_instToMessageDataOptionExpr();
lean_mark_persistent(l_Lean_instToMessageDataOptionExpr);
l_Lean_termM_x21___00__closed__0 = _init_l_Lean_termM_x21___00__closed__0();
lean_mark_persistent(l_Lean_termM_x21___00__closed__0);
l_Lean_termM_x21___00__closed__1 = _init_l_Lean_termM_x21___00__closed__1();
lean_mark_persistent(l_Lean_termM_x21___00__closed__1);
l_Lean_termM_x21___00__closed__2 = _init_l_Lean_termM_x21___00__closed__2();
lean_mark_persistent(l_Lean_termM_x21___00__closed__2);
l_Lean_termM_x21___00__closed__3 = _init_l_Lean_termM_x21___00__closed__3();
lean_mark_persistent(l_Lean_termM_x21___00__closed__3);
l_Lean_termM_x21___00__closed__4 = _init_l_Lean_termM_x21___00__closed__4();
lean_mark_persistent(l_Lean_termM_x21___00__closed__4);
l_Lean_termM_x21___00__closed__5 = _init_l_Lean_termM_x21___00__closed__5();
lean_mark_persistent(l_Lean_termM_x21___00__closed__5);
l_Lean_termM_x21___00__closed__6 = _init_l_Lean_termM_x21___00__closed__6();
lean_mark_persistent(l_Lean_termM_x21___00__closed__6);
l_Lean_termM_x21___00__closed__7 = _init_l_Lean_termM_x21___00__closed__7();
lean_mark_persistent(l_Lean_termM_x21___00__closed__7);
l_Lean_termM_x21___00__closed__8 = _init_l_Lean_termM_x21___00__closed__8();
lean_mark_persistent(l_Lean_termM_x21___00__closed__8);
l_Lean_termM_x21___00__closed__9 = _init_l_Lean_termM_x21___00__closed__9();
lean_mark_persistent(l_Lean_termM_x21___00__closed__9);
l_Lean_termM_x21___00__closed__10 = _init_l_Lean_termM_x21___00__closed__10();
lean_mark_persistent(l_Lean_termM_x21___00__closed__10);
l_Lean_termM_x21___00__closed__11 = _init_l_Lean_termM_x21___00__closed__11();
lean_mark_persistent(l_Lean_termM_x21___00__closed__11);
l_Lean_termM_x21___00__closed__12 = _init_l_Lean_termM_x21___00__closed__12();
lean_mark_persistent(l_Lean_termM_x21___00__closed__12);
l_Lean_termM_x21___00__closed__13 = _init_l_Lean_termM_x21___00__closed__13();
lean_mark_persistent(l_Lean_termM_x21___00__closed__13);
l_Lean_termM_x21__ = _init_l_Lean_termM_x21__();
lean_mark_persistent(l_Lean_termM_x21__);
l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__0 = _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__0();
lean_mark_persistent(l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__0);
l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__1 = _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__1();
lean_mark_persistent(l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__1);
l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__2 = _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__2();
lean_mark_persistent(l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__2);
l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__3 = _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__3();
lean_mark_persistent(l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__3);
l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__4 = _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__4();
lean_mark_persistent(l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__4);
l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__5 = _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__5();
lean_mark_persistent(l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__5);
l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__6 = _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__6();
lean_mark_persistent(l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__6);
l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__7 = _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__7();
lean_mark_persistent(l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__7);
l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__8 = _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__8();
lean_mark_persistent(l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__8);
l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__9 = _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__9();
lean_mark_persistent(l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__9);
l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__10 = _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__10();
lean_mark_persistent(l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__10);
l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__11 = _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__11();
lean_mark_persistent(l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__11);
l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__12 = _init_l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__12();
lean_mark_persistent(l_Lean___aux__Lean__Message______macroRules__Lean__termM_x21____1___closed__12);
l_Lean_toMessageList___closed__0 = _init_l_Lean_toMessageList___closed__0();
lean_mark_persistent(l_Lean_toMessageList___closed__0);
l_Lean_toMessageList___closed__1 = _init_l_Lean_toMessageList___closed__1();
lean_mark_persistent(l_Lean_toMessageList___closed__1);
l_Lean_Kernel_Exception_toMessageData___lam__0___closed__0 = _init_l_Lean_Kernel_Exception_toMessageData___lam__0___closed__0();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___lam__0___closed__0);
l_Lean_Kernel_Exception_toMessageData___lam__0___closed__1 = _init_l_Lean_Kernel_Exception_toMessageData___lam__0___closed__1();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___lam__0___closed__1);
l_Lean_Kernel_Exception_toMessageData___lam__0___closed__2 = _init_l_Lean_Kernel_Exception_toMessageData___lam__0___closed__2();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___lam__0___closed__2);
l_Lean_Kernel_Exception_toMessageData___lam__0___closed__3 = _init_l_Lean_Kernel_Exception_toMessageData___lam__0___closed__3();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___lam__0___closed__3);
l_Lean_Kernel_Exception_toMessageData___lam__0___closed__4 = _init_l_Lean_Kernel_Exception_toMessageData___lam__0___closed__4();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___lam__0___closed__4);
l_Lean_Kernel_Exception_toMessageData___lam__0___closed__5 = _init_l_Lean_Kernel_Exception_toMessageData___lam__0___closed__5();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___lam__0___closed__5);
l_Lean_Kernel_Exception_toMessageData___closed__0 = _init_l_Lean_Kernel_Exception_toMessageData___closed__0();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__0);
l_Lean_Kernel_Exception_toMessageData___closed__1 = _init_l_Lean_Kernel_Exception_toMessageData___closed__1();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__1);
l_Lean_Kernel_Exception_toMessageData___closed__2 = _init_l_Lean_Kernel_Exception_toMessageData___closed__2();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__2);
l_Lean_Kernel_Exception_toMessageData___closed__3 = _init_l_Lean_Kernel_Exception_toMessageData___closed__3();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__3);
l_Lean_Kernel_Exception_toMessageData___closed__4 = _init_l_Lean_Kernel_Exception_toMessageData___closed__4();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__4);
l_Lean_Kernel_Exception_toMessageData___closed__5 = _init_l_Lean_Kernel_Exception_toMessageData___closed__5();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__5);
l_Lean_Kernel_Exception_toMessageData___closed__6 = _init_l_Lean_Kernel_Exception_toMessageData___closed__6();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__6);
l_Lean_Kernel_Exception_toMessageData___closed__7 = _init_l_Lean_Kernel_Exception_toMessageData___closed__7();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__7);
l_Lean_Kernel_Exception_toMessageData___closed__8 = _init_l_Lean_Kernel_Exception_toMessageData___closed__8();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__8);
l_Lean_Kernel_Exception_toMessageData___closed__9 = _init_l_Lean_Kernel_Exception_toMessageData___closed__9();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__9);
l_Lean_Kernel_Exception_toMessageData___closed__10 = _init_l_Lean_Kernel_Exception_toMessageData___closed__10();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__10);
l_Lean_Kernel_Exception_toMessageData___closed__11 = _init_l_Lean_Kernel_Exception_toMessageData___closed__11();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__11);
l_Lean_Kernel_Exception_toMessageData___closed__12 = _init_l_Lean_Kernel_Exception_toMessageData___closed__12();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__12);
l_Lean_Kernel_Exception_toMessageData___closed__13 = _init_l_Lean_Kernel_Exception_toMessageData___closed__13();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__13);
l_Lean_Kernel_Exception_toMessageData___closed__14 = _init_l_Lean_Kernel_Exception_toMessageData___closed__14();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__14);
l_Lean_Kernel_Exception_toMessageData___closed__15 = _init_l_Lean_Kernel_Exception_toMessageData___closed__15();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__15);
l_Lean_Kernel_Exception_toMessageData___closed__16 = _init_l_Lean_Kernel_Exception_toMessageData___closed__16();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__16);
l_Lean_Kernel_Exception_toMessageData___closed__17 = _init_l_Lean_Kernel_Exception_toMessageData___closed__17();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__17);
l_Lean_Kernel_Exception_toMessageData___closed__18 = _init_l_Lean_Kernel_Exception_toMessageData___closed__18();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__18);
l_Lean_Kernel_Exception_toMessageData___closed__19 = _init_l_Lean_Kernel_Exception_toMessageData___closed__19();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__19);
l_Lean_Kernel_Exception_toMessageData___closed__20 = _init_l_Lean_Kernel_Exception_toMessageData___closed__20();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__20);
l_Lean_Kernel_Exception_toMessageData___closed__21 = _init_l_Lean_Kernel_Exception_toMessageData___closed__21();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__21);
l_Lean_Kernel_Exception_toMessageData___closed__22 = _init_l_Lean_Kernel_Exception_toMessageData___closed__22();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__22);
l_Lean_Kernel_Exception_toMessageData___closed__23 = _init_l_Lean_Kernel_Exception_toMessageData___closed__23();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__23);
l_Lean_Kernel_Exception_toMessageData___closed__24 = _init_l_Lean_Kernel_Exception_toMessageData___closed__24();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__24);
l_Lean_Kernel_Exception_toMessageData___closed__25 = _init_l_Lean_Kernel_Exception_toMessageData___closed__25();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__25);
l_Lean_Kernel_Exception_toMessageData___closed__26 = _init_l_Lean_Kernel_Exception_toMessageData___closed__26();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__26);
l_Lean_Kernel_Exception_toMessageData___closed__27 = _init_l_Lean_Kernel_Exception_toMessageData___closed__27();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__27);
l_Lean_Kernel_Exception_toMessageData___closed__28 = _init_l_Lean_Kernel_Exception_toMessageData___closed__28();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__28);
l_Lean_Kernel_Exception_toMessageData___closed__29 = _init_l_Lean_Kernel_Exception_toMessageData___closed__29();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__29);
l_Lean_Kernel_Exception_toMessageData___closed__30 = _init_l_Lean_Kernel_Exception_toMessageData___closed__30();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__30);
l_Lean_Kernel_Exception_toMessageData___closed__31 = _init_l_Lean_Kernel_Exception_toMessageData___closed__31();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__31);
l_Lean_Kernel_Exception_toMessageData___closed__32 = _init_l_Lean_Kernel_Exception_toMessageData___closed__32();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__32);
l_Lean_Kernel_Exception_toMessageData___closed__33 = _init_l_Lean_Kernel_Exception_toMessageData___closed__33();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__33);
l_Lean_Kernel_Exception_toMessageData___closed__34 = _init_l_Lean_Kernel_Exception_toMessageData___closed__34();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__34);
l_Lean_Kernel_Exception_toMessageData___closed__35 = _init_l_Lean_Kernel_Exception_toMessageData___closed__35();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__35);
l_Lean_Kernel_Exception_toMessageData___closed__36 = _init_l_Lean_Kernel_Exception_toMessageData___closed__36();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__36);
l_Lean_Kernel_Exception_toMessageData___closed__37 = _init_l_Lean_Kernel_Exception_toMessageData___closed__37();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__37);
l_Lean_Kernel_Exception_toMessageData___closed__38 = _init_l_Lean_Kernel_Exception_toMessageData___closed__38();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__38);
l_Lean_Kernel_Exception_toMessageData___closed__39 = _init_l_Lean_Kernel_Exception_toMessageData___closed__39();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__39);
l_Lean_Kernel_Exception_toMessageData___closed__40 = _init_l_Lean_Kernel_Exception_toMessageData___closed__40();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__40);
l_Lean_Kernel_Exception_toMessageData___closed__41 = _init_l_Lean_Kernel_Exception_toMessageData___closed__41();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__41);
l_Lean_Kernel_Exception_toMessageData___closed__42 = _init_l_Lean_Kernel_Exception_toMessageData___closed__42();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__42);
l_Lean_Kernel_Exception_toMessageData___closed__43 = _init_l_Lean_Kernel_Exception_toMessageData___closed__43();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__43);
l_Lean_Kernel_Exception_toMessageData___closed__44 = _init_l_Lean_Kernel_Exception_toMessageData___closed__44();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__44);
l_Lean_Kernel_Exception_toMessageData___closed__45 = _init_l_Lean_Kernel_Exception_toMessageData___closed__45();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__45);
l_Lean_Kernel_Exception_toMessageData___closed__46 = _init_l_Lean_Kernel_Exception_toMessageData___closed__46();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__46);
l_Lean_Kernel_Exception_toMessageData___closed__47 = _init_l_Lean_Kernel_Exception_toMessageData___closed__47();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__47);
l_Lean_Kernel_Exception_toMessageData___closed__48 = _init_l_Lean_Kernel_Exception_toMessageData___closed__48();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__48);
l_Lean_Kernel_Exception_toMessageData___closed__49 = _init_l_Lean_Kernel_Exception_toMessageData___closed__49();
lean_mark_persistent(l_Lean_Kernel_Exception_toMessageData___closed__49);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
